; PCB List Script file ; ; Load some processes: start P01 0 ps 0 start P02 3 start P03 0 ; ; Check the status of the jobs: ps all ; ; Put a job into the run state: switch 0 ; ; Verify: ps all ; ; Call some functions: call main 0 3 1 2 3 call F01 1 2 2 3 5 ;call F02 3 1 2 3 0 ps 0 set 1 100 ps 0 ; ; Do a context switch and verify: switch 0 ps all ; ; Some calls: call main 0 1 1 call G01 0 0 call G02 1 3 2 1 2 ps 2 ; ; Another context switch: switch 0 ; ; Try a function return: return ps 0 ; ; And now terminate main(): return ps 0 ; ; And finally try a return with no running process: return ; ; Verify process list: ps all ; ; Add another process: start P04 2 ps 3 ; ; Run another process: switch 3 call main 0 0 ps 1 ; ; Try a switch w/o a candidate process to ; move to run state: switch 3 ps all ; ; Kill one and verify: kill 2 kill 0 ps all ; switch 1 ; ; Shut down: exit