[10/04/2011] Homework #2: Maximum number of MYPATH directories? -- unlimited (upper level of 20?) Executing command -- no need to handle absolute paths on cmds -- no need to handle relative paths on cmds -- the '.' directory must be in MYPATH if a.out is to work Running a process in the background: ---| repeat & How do you handle ENTER in the while loop: while( 1 ) { scanf( "%[^\n]", cmd ); getchar(); /* reset cmd */ /* zero it out... */ } glob ========================================================== parent/child fork() model -- a thread is a lightweight process -- multiple threads reside/run within a single process -- tradeoffs -- process context switch vs. thread context switch -- Apache -- parent process that pre-forks N child processes