; PCB List Script file ; Test context switching logic: ; start P01 0 start P02 0 start P03 0 start P11 1 start P12 1 start P13 1 start P21 2 start P22 2 start P23 2 start P31 3 start P32 3 start P33 3 start P41 4 start P42 4 start P43 4 ; ; Check the status of the jobs: ps all ; ; Rotate through the first processes in each priority level: switch 0 switch 1 switch 1 switch 3 switch 4 ; ; Process P41 should be running: ps all ; ; Cycle through processes with priority 4: switch 4 switch 4 ps all switch 4 ; ; Remove all the processes with priority 2: kill 6 kill 7 kill 8 ps all ; ; Try to switch in a process with priority 2: switch 2 ; ; P41 should still be running: ps all ; ; Shut down: exit