by Michael Wicherski on Tue Nov 11, 2008 4:27 pm
1. What command shows a list of the processes running
ps (use ps -l or ps -ef for more information about processes)
2. Name four states a process can be in
active, waiting, orphan, zombie
3. What is the difference between fork and exec system calls.
fork:
makes a duplicate copy of the parent process; creating the child process which has a different PID than parent
exec:
overlays child process with instructions of command and executes
simple terms!
fork: clones parent into a child process with new pid
exec: executes the process/commands