Programmer: Bill McQuain CS 1704: Process Management Simulation Script file: rt.txt Log file: RTLog.txt ---------------------------------------------------------------------- Command 1: start ABLE 0 Process 0 added. ---------------------------------------------------------------------- Command 2: start BAKER 0 Process 1 added. ---------------------------------------------------------------------- Command 3: switch 0 Process 0 now in run mode. ---------------------------------------------------------------------- Command 4: ps all Running process: ABLE PID: 0 Priority: 0 Call stack: Stack is empty. Processes with priority 0: BAKER PID: 1 Priority: 0 Processes with priority 1: Processes with priority 2: Processes with priority 3: Processes with priority 4: ---------------------------------------------------------------------- Command 5: call main 0 0 Call to main initiated. ---------------------------------------------------------------------- Command 6: call ABLE::F 3 100 200 300 2 100 200 Call to ABLE::F initiated. ---------------------------------------------------------------------- Command 7: call ABLE::G 0 2 100 200 Call to ABLE::G initiated. ---------------------------------------------------------------------- Command 8: ps 0 ABLE PID: 0 Priority: 0 Call stack: Function: ABLE::G Parameters: Locals: 100 200 Function: ABLE::F Parameters: 100 200 300 Locals: 100 200 Function: main Parameters: Locals: ---------------------------------------------------------------------- Command 9: switch 0 Process 1 now in run mode. ---------------------------------------------------------------------- Command 10: call main 0 0 Call to main initiated. ---------------------------------------------------------------------- Command 11: call BAKER::F 0 8 100 200 300 400 500 600 700 800 Call to BAKER::F initiated. ---------------------------------------------------------------------- Command 12: call BAKER::G 3 100 200 300 0 Call to BAKER::G initiated. ---------------------------------------------------------------------- Command 13: call BAKER::H 1 100 1 100 Call to BAKER::H initiated. ---------------------------------------------------------------------- Command 14: call BAKER::J 0 0 Call to BAKER::J initiated. ---------------------------------------------------------------------- Command 15: call BAKER::K 1 100 0 Call to BAKER::K initiated. ---------------------------------------------------------------------- Command 16: call BAKER::L 0 1 100 Call to BAKER::L initiated. ---------------------------------------------------------------------- Command 17: ps 1 BAKER PID: 1 Priority: 0 Call stack: Function: BAKER::L Parameters: Locals: 100 Function: BAKER::K Parameters: 100 Locals: Function: BAKER::J Parameters: Locals: Function: BAKER::H Parameters: 100 Locals: 100 Function: BAKER::G Parameters: 100 200 300 Locals: Function: BAKER::F Parameters: Locals: 100 200 300 400 500 600 700 800 Function: main Parameters: Locals: ---------------------------------------------------------------------- Command 18: switch 0 Process 0 now in run mode. ---------------------------------------------------------------------- Command 19: ps all Running process: ABLE PID: 0 Priority: 0 Call stack: Function: ABLE::G Parameters: Locals: 100 200 Function: ABLE::F Parameters: 100 200 300 Locals: 100 200 Function: main Parameters: Locals: Processes with priority 0: BAKER PID: 1 Priority: 0 Processes with priority 1: Processes with priority 2: Processes with priority 3: Processes with priority 4: ---------------------------------------------------------------------- Command 20: return Function ABLE::G terminated for process ABLE ---------------------------------------------------------------------- Command 21: return Function ABLE::F terminated for process ABLE ---------------------------------------------------------------------- Command 22: ps 0 ABLE PID: 0 Priority: 0 Call stack: Function: main Parameters: Locals: ---------------------------------------------------------------------- Command 23: switch 0 Process 1 now in run mode. ---------------------------------------------------------------------- Command 24: ps 1 BAKER PID: 1 Priority: 0 Call stack: Function: BAKER::L Parameters: Locals: 100 Function: BAKER::K Parameters: 100 Locals: Function: BAKER::J Parameters: Locals: Function: BAKER::H Parameters: 100 Locals: 100 Function: BAKER::G Parameters: 100 200 300 Locals: Function: BAKER::F Parameters: Locals: 100 200 300 400 500 600 700 800 Function: main Parameters: Locals: ---------------------------------------------------------------------- Command 25: set 1 1111 ---------------------------------------------------------------------- Command 26: ps 1 BAKER PID: 1 Priority: 0 Call stack: Function: BAKER::L Parameters: Locals: 1111 Function: BAKER::K Parameters: 100 Locals: Function: BAKER::J Parameters: Locals: Function: BAKER::H Parameters: 100 Locals: 100 Function: BAKER::G Parameters: 100 200 300 Locals: Function: BAKER::F Parameters: Locals: 100 200 300 400 500 600 700 800 Function: main Parameters: Locals: ---------------------------------------------------------------------- Command 27: return Function BAKER::L terminated for process BAKER ---------------------------------------------------------------------- Command 28: return Function BAKER::K terminated for process BAKER ---------------------------------------------------------------------- Command 29: return Function BAKER::J terminated for process BAKER ---------------------------------------------------------------------- Command 30: set 1 2222 ---------------------------------------------------------------------- Command 31: ps 1 BAKER PID: 1 Priority: 0 Call stack: Function: BAKER::H Parameters: 100 Locals: 2222 Function: BAKER::G Parameters: 100 200 300 Locals: Function: BAKER::F Parameters: Locals: 100 200 300 400 500 600 700 800 Function: main Parameters: Locals: ---------------------------------------------------------------------- Command 32: return Function BAKER::H terminated for process BAKER ---------------------------------------------------------------------- Command 33: return Function BAKER::G terminated for process BAKER ---------------------------------------------------------------------- Command 34: set 4 4444 ---------------------------------------------------------------------- Command 35: set 8 8888 ---------------------------------------------------------------------- Command 36: ps 1 BAKER PID: 1 Priority: 0 Call stack: Function: BAKER::F Parameters: Locals: 100 200 300 4444 500 600 700 8888 Function: main Parameters: Locals: ---------------------------------------------------------------------- Command 37: exit Exiting script execution. ----------------------------------------------------------------------