nov 23
thrashing
Show thrashing example and use 'top' for stats; see attached test_fftw.c. Uses fftw.org 's fast-fourier scientific library.)
shell lab
Discuss the tsh shell assignment, and first steps for the final project.
- (For now at least I'm *not* uploading my own code, though I'll show it in class and discuss the issues. I'd rather see you write your own version and demonstrate your understanding.)
- trace01.txt : CLOSE and end-of-file. Where is that handled in the tsh.c ?
- trace02.txt : builtin "quit" : eval(), parseline(), builtin_cmd()
- trace03.txt : running another command :
- the basics : fork and execve
- foreground vs background jobs
- the job list
- race conditions
tsh already has a "v" for verbose flag built in; use it to add your own debugging stuff.
There are several "helper" programs provided, for things that don't stop too quickly and can just sit around in the background.
Pay attention to the discussion in shlab.pdf and the text on sigprocmask() : what it is and what it's for.
cs crash
Walk though some unix basics : what actually happens during boot? How do you replace a dead hard drive ... even if you do have a backup of it?