분류 전체보기14 xv6 Lab: Utilities (2) pingpong 이 문제는 MIT의 xv6 수업에 출처가 있습니다. 출처 : Lab: Xv6 and Unix utilities (mit.edu) Write a program that uses UNIX system calls to ''ping-pong'' a byte between two processes over a pair of pipes, one for each direction. The parent should send a byte to the child; the child should print ": received ping", where is its process ID, write the byte on the pipe to the parent, and exit; the parent should read the .. 2022. 8. 31. xv6 Lab: Utilities (1) sleep 이 문제는 MIT의 xv6 수업에 출처가 있습니다. 출처 : Lab: Xv6 and Unix utilities (mit.edu) Implement the UNIX program sleep for xv6; your sleep should pause for a user-specified number of ticks. A tick is a notion of time defined by the xv6 kernel, namely the time between two interrupts from the timer chip. 이미 구현되어 있는 sleep()함수를 이용하여 sleep 명령어를 구현하는 문제 Solution #include "kernel/types.h" #include "kernel/stat.h" #i.. 2022. 8. 31. 이전 1 2 3 4 다음