Programmer: Bill McQuain CS 1704: Process Control Block List -------------------------------------------------------------------------------- Command: start ps 4 Process 0 added. -------------------------------------------------------------------------------- Command: start vi 5 Process 1 added. -------------------------------------------------------------------------------- Command: start ls 1 Process 2 added. -------------------------------------------------------------------------------- Command: start emacs 1 Process 3 added. -------------------------------------------------------------------------------- Command: start mkdir 5 Process 4 added. -------------------------------------------------------------------------------- Command: start cd 3 Process 5 added. -------------------------------------------------------------------------------- Command: start su 3 Process 6 added. -------------------------------------------------------------------------------- Command: ps 2 ls 2 ELIGIBLE 1 -------------------------------------------------------------------------------- Command: ps 3 emacs 3 ELIGIBLE 1 -------------------------------------------------------------------------------- Command: switch Process 0 now in run mode. -------------------------------------------------------------------------------- Command: ps 0 ps 0 RUNNING 4 -------------------------------------------------------------------------------- Command: switch Process 1 now in run mode. -------------------------------------------------------------------------------- Command: ps 0 ps 0 ELIGIBLE 4 -------------------------------------------------------------------------------- Command: ps 1 vi 1 RUNNING 5 -------------------------------------------------------------------------------- Command: start ls 1 Process 7 added. -------------------------------------------------------------------------------- Command: switch Process 2 now in run mode. -------------------------------------------------------------------------------- Command: switch Process 3 now in run mode. -------------------------------------------------------------------------------- Command: switch Process 4 now in run mode. -------------------------------------------------------------------------------- Command: switch Process 5 now in run mode. -------------------------------------------------------------------------------- Command: switch Process 6 now in run mode. -------------------------------------------------------------------------------- Command: switch Process 0 now in run mode. -------------------------------------------------------------------------------- Command: switch Process 7 now in run mode. -------------------------------------------------------------------------------- Command: ps all ls 7 RUNNING 1 vi 1 ELIGIBLE 5 ls 2 ELIGIBLE 1 emacs 3 ELIGIBLE 1 mkdir 4 ELIGIBLE 5 cd 5 ELIGIBLE 3 su 6 ELIGIBLE 3 ps 0 ELIGIBLE 4 -------------------------------------------------------------------------------- Command: kill 3 Process 3 removed. -------------------------------------------------------------------------------- Command: ps 3 Process not found: 3 -------------------------------------------------------------------------------- Command: ps 4 mkdir 4 ELIGIBLE 5 -------------------------------------------------------------------------------- Command: kill 4 Process 4 removed. -------------------------------------------------------------------------------- Command: ps 4 Process not found: 4 -------------------------------------------------------------------------------- Command: ps all ls 7 RUNNING 1 vi 1 ELIGIBLE 5 ls 2 ELIGIBLE 1 cd 5 ELIGIBLE 3 su 6 ELIGIBLE 3 ps 0 ELIGIBLE 4 -------------------------------------------------------------------------------- Command: exit Exiting script execution. --------------------------------------------------------------------------------