Programmer: Bill McQuain CS 1704: Process Control Block List -------------------------------------------------------------------------------- Command: start P01 1 Process 0 added. -------------------------------------------------------------------------------- Command: ps 0 P01 0 ELIGIBLE 1 -------------------------------------------------------------------------------- Command: start P02 3 Process 1 added. -------------------------------------------------------------------------------- Command: start P03 1 Process 2 added. -------------------------------------------------------------------------------- Command: ps all P01 0 ELIGIBLE 1 P02 1 ELIGIBLE 3 P03 2 ELIGIBLE 1 -------------------------------------------------------------------------------- Command: sort by priority Sorting list of 3 processes by priority. -------------------------------------------------------------------------------- Command: ps all P02 1 ELIGIBLE 3 P01 0 ELIGIBLE 1 P03 2 ELIGIBLE 1 -------------------------------------------------------------------------------- Command: switch Process 1 now in run mode. -------------------------------------------------------------------------------- Command: ps all P02 1 RUNNING 3 P01 0 ELIGIBLE 1 P03 2 ELIGIBLE 1 -------------------------------------------------------------------------------- Command: switch Process 0 now in run mode. -------------------------------------------------------------------------------- Command: ps all P01 0 RUNNING 1 P03 2 ELIGIBLE 1 P02 1 ELIGIBLE 3 -------------------------------------------------------------------------------- Command: switch Process 2 now in run mode. -------------------------------------------------------------------------------- Command: ps all P03 2 RUNNING 1 P02 1 ELIGIBLE 3 P01 0 ELIGIBLE 1 -------------------------------------------------------------------------------- Command: start P04 2 Process 3 added. -------------------------------------------------------------------------------- Command: ps 3 P04 3 ELIGIBLE 2 -------------------------------------------------------------------------------- Command: kill 2 Process 2 removed. -------------------------------------------------------------------------------- Command: kill 0 Process 0 removed. -------------------------------------------------------------------------------- Command: ps all P02 1 ELIGIBLE 3 P04 3 ELIGIBLE 2 -------------------------------------------------------------------------------- Command: exit Exiting script execution. --------------------------------------------------------------------------------