; General test for process scheduler: ; ; Populate the process list: start P00 0 start P01 0 start P02 0 start P03 0 start P04 0 start P05 0 start P06 0 start P07 0 start P08 0 start P09 0 start P10 1 start P11 1 start P12 1 start P13 1 start P14 1 start P15 1 start P16 1 start P17 1 start P18 1 start P19 1 start P20 2 start P21 2 start P22 2 start P23 2 start P24 2 start P25 2 start P26 2 start P27 2 start P28 2 start P29 2 start P30 3 start P31 3 start P32 3 start P33 3 start P34 3 start P35 3 start P36 3 start P37 3 start P38 3 start P39 3 start P40 4 start P41 4 start P42 4 start P43 4 start P44 4 start P45 4 start P46 4 start P47 4 start P48 4 start P49 4 ; ; Switch one in and fire it up: switch 0 call main 0 0 call F 0 0 call G 0 0 ; ; Switch another in and fire it up: switch 4 call main 0 0 ; ; Switch another one in and fire it up: switch 2 call main 0 0 call F 1 200 3 100 200 300 call G 0 0 ps all ; ; Do some returns and see if the running process is killed properly: return return return ps all ; ; Switch another one in: switch 3 call main 0 3 100 200 300 set 1 1111 set 2 2222 set 3 3333 ps all set 4 4444 ps all ; ; Throw out some prime kills: kill 2 kill 3 kill 5 kill 7 kill 11 kill 13 kill 17 kill 19 kill 23 kill 29 kill 31 kill 37 kill 41 kill 43 kill 47 ps all ; ; Switch around: switch 0 switch 1 switch 2 switch 3 switch 4 switch 3 switch 2 switch 1 switch 0 switch 2 switch 4 ps all ; ; Resurrect the first process that was run: switch 0 switch 0 switch 0 switch 0 ps all ; ; Kill it: kill 0 ps all ; ; Quit: exit