Logo  

CS471/571 - Operating Systems

Description

Exercise #3

Read lesson 4 on installing XV6 and:

  1. Install XV6 somewhere, perhaps in your home directory as either xv6 or xv6-public. Also make sure you have QEMU installed.

  2. Implement for XV6 a user-space program to copy a file (the cp command) I would recommend looking at the cat.c file.

  3. Implement for XV6 a user-space program to sleep for N number of ticks (default of 0 ticks). On my machine it's about 100 ticks / second. Use the sleep() system call to sleep for some number of ticks.