Lab1 contains serveral small tasks, most of them is quiet easy. We need implement some utilities using system calls provide by the Xv6.
Xv6 already has a sleep system call, meaning that we just need to parse command line arguments and call the function.
int time;
time = atoi(argv[1]);
sleep(time);
Pinpong requires us using syscall fork() and Pipe() to send the message between two process.