jr-shen / labs-xv6

labs for xv6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XV6 Labs - for Operating System

Source: https://pdos.csail.mit.edu/6.828/2021/xv6.html

Lab 1 Utilities

Including some user-space programs

sleep.c

Nothing to say, just use the system call sleep.

pingpong.c

Using fork we create a child process, using pipe we connect a pair of file descriptors. Then using read and write for process communication.

pirmes.c

Find primes in 2, 35 using the sieve of Eratosthenes in each pipeline and print out the first prime. Need to control the amount of piped file descriptors.

alt text

find.c

A unix-like find program. Traverse the file directory recursively. Using stat and dirent for file manipulation.

xargs.c

Nothing to say, see my 3-days 69-lines bullshit code in user/xargs.c.

About

labs for xv6

License:Other


Languages

Language:C 86.5%Language:Python 7.1%Language:Makefile 3.3%Language:Assembly 2.8%Language:Perl 0.2%Language:Shell 0.0%Language:Emacs Lisp 0.0%