Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COM3 COM5 COM7 COM8
- Port 0 Initialized
- Job Size for Process 1 is 500
- Port 1 Initialized
- Job Size for Process 2 is 434
- Port 2 Initialized
- Job Size for Process 3 is 160
- Port 3 Initialized
- Job Size for Process 4 is 317
- Process 1 arrives at 0 seconds.
- Process 2 arrives at 24 seconds.
- Process 3 arrives at 28 seconds.
- Process 4 arrives at 28 seconds.
- Arrival Array
- [0] 28
- [1] 28
- [2] 0
- [3] 24
- Job Size
- [0] 160
- [1] 317
- [2] 434
- [3] 500
- Arrival Index
- [0] 2
- [1] 3
- [2] 1
- [3] 0
- Init Selfish Round Robin Algorithm
- Process 1 has Arrived.
- Process 1 is running...
- [0 2147483647 2147483647 2147483647],[0 0 0 0],[true true true true],[true false false false]
- Process 1 has moved from holding to accepted queue.
- Process 1 is Preempted...
- Current Time: 5
- Process 1 is running...
- [10 2147483647 2147483647 2147483647],[-2147483632 0 0 0],[true true true true],[true false false false]
- Process 1 is Preempted...
- Current Time: 10
- Process 1 is running...
- [20 2147483647 2147483647 2147483647],[-2147483617 0 0 0],[true true true true],[true false false false]
- Process 1 is Preempted...
- Current Time: 15
- Process 1 is running...
- [30 2147483647 2147483647 2147483647],[-2147483602 0 0 0],[true true true true],[true false false false]
- Process 1 has ended.
- Current Time: 18
- Process 2 has Arrived.
- Process 4 has Arrived.
- Process 3 has Arrived.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement