Sie sind auf Seite 1von 6

Setting up Simulation with 8 starting processes Allocating Job with PID 0 into Process List Allocating Job with

PID 1 into Process List Allocating Job with PID 2 into Process List Allocating Job with PID 3 into Process List Allocating Job with PID 4 into Process List Allocating Job with PID 5 into Process List Allocating Job with PID 6 into Process List Allocating Job with PID 7 into Process List Initial Jobs Ready: Starting Simulation ============================================= Getting Job from Queue with PID 0 Executing Current Job: PID: 0 State: RUNNING Actual CPU Time (ms): 2 Desired CP U Time (ms): 523 Current job needs to perform IO. Returning control to CPU Current State of the CPU: ________________________________________ CPU Process List: PID: 0 PID: 1 PID: 2 PID: 3 PID: 4 PID: 5 PID: 6 PID: 7 ________________________________________ Current State of the Process Queue: Scheduler using Queue Type Queue Structure Printing Queue: PID: 1 State: NEW Actual CPU Time (ms): 3 Desired CPU Time (ms): 537 PID: 2 State: NEW Actual CPU Time (ms): 2 Desired CPU Time (ms): 817 PID: 3 State: NEW Actual CPU Time (ms): 2 Desired CPU Time (ms): 1 PID: 4 State: NEW Actual CPU Time (ms): 2 Desired CPU Time (ms): 129 PID: 5 State: NEW Actual CPU Time (ms): 2 Desired CPU Time (ms): 280 PID: 6 State: NEW Actual CPU Time (ms): 2 Desired CPU Time (ms): 22 PID: 7 State: NEW Actual CPU Time (ms): 2 Desired CPU Time (ms): 15 PID: 0 State: WAITING Actual CPU Time (ms): 3 Desired CPU Time (ms): 523 ============================================= Getting Job from Queue with PID 1 Executing Current Job: PID: 1 State: RUNNING Actual CPU Time (ms): 4 Desired CP U Time (ms): 537 Current job needs to perform IO. Returning control to CPU Current State of the CPU: ________________________________________ CPU Process List: PID: 0 PID: 1 PID: 2 PID: 3 PID: 4 PID: 5 PID: 6 PID: 7 ________________________________________ Current State of the Process Queue:

Scheduler using Queue Type Queue Structure Printing Queue: PID: 2 State: NEW Actual CPU Time (ms): 4 Desired CPU Time (ms): 817 PID: 3 State: NEW Actual CPU Time (ms): 5 Desired CPU Time (ms): 1 PID: 4 State: NEW Actual CPU Time (ms): 5 Desired CPU Time (ms): 129 PID: 5 State: NEW Actual CPU Time (ms): 5 Desired CPU Time (ms): 280 PID: 6 State: NEW Actual CPU Time (ms): 5 Desired CPU Time (ms): 22 PID: 7 State: NEW Actual CPU Time (ms): 5 Desired CPU Time (ms): 15 PID: 0 State: WAITING Actual CPU Time (ms): 6 Desired CPU Time (ms): 523 PID: 1 State: WAITING Actual CPU Time (ms): 6 Desired CPU Time (ms): 537 ============================================= Getting Job from Queue with PID 2 Executing Current Job: PID: 2 State: RUNNING Actual CPU Time (ms): 5 Desired CP U Time (ms): 817 Current job needs to perform IO. Returning control to CPU Current State of the CPU: ________________________________________ CPU Process List: PID: 0 PID: 1 PID: 2 PID: 3 PID: 4 PID: 5 PID: 6 PID: 7 ________________________________________ Current State of the Process Queue: Scheduler using Queue Type Queue Structure Printing Queue: PID: 3 State: NEW Actual CPU Time (ms): 6 Desired CPU Time (ms): 1 PID: 4 State: NEW Actual CPU Time (ms): 6 Desired CPU Time (ms): 129 PID: 5 State: NEW Actual CPU Time (ms): 6 Desired CPU Time (ms): 280 PID: 6 State: NEW Actual CPU Time (ms): 6 Desired CPU Time (ms): 22 PID: 7 State: NEW Actual CPU Time (ms): 7 Desired CPU Time (ms): 15 PID: 0 State: WAITING Actual CPU Time (ms): 8 Desired CPU Time (ms): 523 PID: 1 State: WAITING Actual CPU Time (ms): 8 Desired CPU Time (ms): 537 PID: 2 State: WAITING Actual CPU Time (ms): 7 Desired CPU Time (ms): 817 ============================================= Getting Job from Queue with PID 3 Executing Current Job: PID: 3 State: RUNNING Actual CPU Time (ms): 7 Desired CP U Time (ms): 1 Terminating Job with PID 3 Current State of the CPU: ________________________________________ CPU Process List: PID: 0 PID: 1 PID: 2 PID: 4 PID: 5 PID: 6 PID: 7 ________________________________________ Current State of the Process Queue: Scheduler using Queue Type Queue Structure Printing Queue: PID: 4 State: NEW Actual CPU Time (ms): 8 Desired CPU Time (ms): 129

PID: 5 State: NEW Actual CPU Time (ms): 8 Desired CPU Time (ms): 280 PID: 6 State: NEW Actual CPU Time (ms): 8 Desired CPU Time (ms): 22 PID: 7 State: NEW Actual CPU Time (ms): 8 Desired CPU Time (ms): 15 PID: 0 State: WAITING Actual CPU Time (ms): 9 Desired CPU Time (ms): 523 PID: 1 State: WAITING Actual CPU Time (ms): 9 Desired CPU Time (ms): 537 PID: 2 State: WAITING Actual CPU Time (ms): 8 Desired CPU Time (ms): 817 ============================================= Getting Job from Queue with PID 4 Executing Current Job: PID: 4 State: RUNNING Actual CPU Time (ms): 9 Desired CP U Time (ms): 129 Terminating Job with PID 4 Current State of the CPU: ________________________________________ CPU Process List: PID: 0 PID: 1 PID: 2 PID: 5 PID: 6 PID: 7 ________________________________________ Current State of the Process Queue: Scheduler using Queue Type Queue Structure Printing Queue: PID: 5 State: NEW Actual CPU Time (ms): 9 Desired CPU Time (ms): 280 PID: 6 State: NEW Actual CPU Time (ms): 9 Desired CPU Time (ms): 22 PID: 7 State: NEW Actual CPU Time (ms): 10 Desired CPU Time (ms): 15 PID: 0 State: WAITING Actual CPU Time (ms): 11 Desired CPU Time (ms): 523 PID: 1 State: WAITING Actual CPU Time (ms): 11 Desired CPU Time (ms): 537 PID: 2 State: WAITING Actual CPU Time (ms): 10 Desired CPU Time (ms): 817 ============================================= Getting Job from Queue with PID 5 Executing Current Job: PID: 5 State: RUNNING Actual CPU Time (ms): 10 Desired C PU Time (ms): 280 Terminating Job with PID 5 Current State of the CPU: ________________________________________ CPU Process List: PID: 0 PID: 1 PID: 2 PID: 6 PID: 7 ________________________________________ Current State of the Process Queue: Scheduler using Queue Type Queue Structure Printing Queue: PID: 6 State: NEW Actual CPU Time (ms): 11 Desired CPU Time (ms): 22 PID: 7 State: NEW Actual CPU Time (ms): 11 Desired CPU Time (ms): 15 PID: 0 State: WAITING Actual CPU Time (ms): 12 Desired CPU Time (ms): 523 PID: 1 State: WAITING Actual CPU Time (ms): 12 Desired CPU Time (ms): 537 PID: 2 State: WAITING Actual CPU Time (ms): 11 Desired CPU Time (ms): 817 ============================================= Getting Job from Queue with PID 6 Executing Current Job: PID: 6 State: RUNNING Actual CPU Time (ms): 11 Desired C PU Time (ms): 22 Terminating Job with PID 6

Current State of the CPU: ________________________________________ CPU Process List: PID: 0 PID: 1 PID: 2 PID: 7 ________________________________________ Current State of the Process Queue: Scheduler using Queue Type Queue Structure Printing Queue: PID: 7 State: NEW Actual CPU Time (ms): 12 Desired CPU Time (ms): 15 PID: 0 State: WAITING Actual CPU Time (ms): 13 Desired CPU Time (ms): 523 PID: 1 State: WAITING Actual CPU Time (ms): 13 Desired CPU Time (ms): 537 PID: 2 State: WAITING Actual CPU Time (ms): 12 Desired CPU Time (ms): 817 ============================================= Getting Job from Queue with PID 7 Executing Current Job: PID: 7 State: RUNNING Actual CPU Time (ms): 12 Desired C PU Time (ms): 15 Current job needs to perform IO. Returning control to CPU Current State of the CPU: ________________________________________ CPU Process List: PID: 0 PID: 1 PID: 2 PID: 7 ________________________________________ Current State of the Process Queue: Scheduler using Queue Type Queue Structure Printing Queue: PID: 0 State: WAITING Actual CPU Time (ms): 14 Desired CPU Time (ms): 523 PID: 1 State: WAITING Actual CPU Time (ms): 14 Desired CPU Time (ms): 537 PID: 2 State: WAITING Actual CPU Time (ms): 13 Desired CPU Time (ms): 817 PID: 7 State: WAITING Actual CPU Time (ms): 13 Desired CPU Time (ms): 15 ============================================= Getting Job from Queue with PID 0 Process with PID 0 has finished IO Executing Current Job: PID: 0 State: RUNNING Actual CPU Time (ms): 14 Desired C PU Time (ms): 523 Terminating Job with PID 0 Current State of the CPU: ________________________________________ CPU Process List: PID: 1 PID: 2 PID: 7 ________________________________________ Current State of the Process Queue: Scheduler using Queue Type Queue Structure Printing Queue: PID: 1 State: WAITING Actual CPU Time (ms): 15 Desired CPU Time (ms): 537 PID: 2 State: WAITING Actual CPU Time (ms): 14 Desired CPU Time (ms): 817 PID: 7 State: WAITING Actual CPU Time (ms): 14 Desired CPU Time (ms): 15 ============================================= Getting Job from Queue with PID 1 Executing Current Job: PID: 1 State: RUNNING Actual CPU Time (ms): 15 Desired C

PU Time (ms): 537 Terminating Job with PID 1 Current State of the CPU: ________________________________________ CPU Process List: PID: 2 PID: 7 ________________________________________ Current State of the Process Queue: Scheduler using Queue Type Queue Structure Printing Queue: PID: 2 State: WAITING Actual CPU Time (ms): 15 Desired CPU Time (ms): 817 PID: 7 State: WAITING Actual CPU Time (ms): 15 Desired CPU Time (ms): 15 ============================================= Getting Job from Queue with PID 2 Process with PID 2 has finished IO Executing Current Job: PID: 2 State: RUNNING Actual CPU Time (ms): 15 Desired C PU Time (ms): 817 Terminating Job with PID 2 Current State of the CPU: ________________________________________ CPU Process List: PID: 7 ________________________________________ Current State of the Process Queue: Scheduler using Queue Type Queue Structure Printing Queue: PID: 7 State: WAITING Actual CPU Time (ms): 16 Desired CPU Time (ms): 15 ============================================= Getting Job from Queue with PID 7 Executing Current Job: PID: 7 State: RUNNING Actual CPU Time (ms): 16 Desired C PU Time (ms): 15 Terminating Job with PID 7 Current State of the CPU: ________________________________________ CPU Process List: ________________________________________ Current State of the Process Queue: Scheduler using Queue Type Queue Structure Printing Queue: ============================================= Getting Job from Queue No More Jobs on Queue. Exiting Simulation CPU Statistics: ======================================================== PID: 0 | Turn Around Time Of: 37 | Waiting Time: 13 PID: 1 | Turn Around Time Of: 33 | Waiting Time: 14 PID: 2 | Turn Around Time Of: 36 | Waiting Time: 15 PID: 3 | Turn Around Time Of: 21 | Waiting Time: 7 PID: 4 | Turn Around Time Of: 27 | Waiting Time: 9 PID: 5 | Turn Around Time Of: 30 | Waiting Time: 10 PID: 6 | Turn Around Time Of: 33 | Waiting Time: 11 PID: 7 | Turn Around Time Of: 44 | Waiting Time: 16 ======================================================== Averages: Turn Around: 37 Waiting Time: 13

| | | | | | | |

========================================================

Das könnte Ihnen auch gefallen