-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathp2output02-full-RR.txt
83 lines (82 loc) · 6.23 KB
/
p2output02-full-RR.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
time 0ms: Simulator started for RR [Q empty]
time 319ms: Process A0 arrived; added to ready queue [Q A0]
time 321ms: Process A0 started using the CPU for 1448ms burst [Q empty]
time 506ms: Process A1 arrived; added to ready queue [Q A1]
time 577ms: Time slice expired; preempting process A0 with 1192ms remaining [Q A1]
time 581ms: Process A1 started using the CPU for 971ms burst [Q A0]
time 821ms: Process A2 arrived; added to ready queue [Q A0 A2]
time 837ms: Time slice expired; preempting process A1 with 715ms remaining [Q A0 A2]
time 841ms: Process A0 started using the CPU for remaining 1192ms of 1448ms burst [Q A2 A1]
time 1097ms: Time slice expired; preempting process A0 with 936ms remaining [Q A2 A1]
time 1101ms: Process A2 started using the CPU for 408ms burst [Q A1 A0]
time 1357ms: Time slice expired; preempting process A2 with 152ms remaining [Q A1 A0]
time 1361ms: Process A1 started using the CPU for remaining 715ms of 971ms burst [Q A0 A2]
time 1617ms: Time slice expired; preempting process A1 with 459ms remaining [Q A0 A2]
time 1621ms: Process A0 started using the CPU for remaining 936ms of 1448ms burst [Q A2 A1]
time 1877ms: Time slice expired; preempting process A0 with 680ms remaining [Q A2 A1]
time 1881ms: Process A2 started using the CPU for remaining 152ms of 408ms burst [Q A1 A0]
time 2033ms: Process A2 completed a CPU burst; 14 bursts to go [Q A1 A0]
time 2033ms: Process A2 switching out of CPU; blocking on I/O until time 7547ms [Q A1 A0]
time 2037ms: Process A1 started using the CPU for remaining 459ms of 971ms burst [Q A0]
time 2293ms: Time slice expired; preempting process A1 with 203ms remaining [Q A0]
time 2297ms: Process A0 started using the CPU for remaining 680ms of 1448ms burst [Q A1]
time 2553ms: Time slice expired; preempting process A0 with 424ms remaining [Q A1]
time 2557ms: Process A1 started using the CPU for remaining 203ms of 971ms burst [Q A0]
time 2760ms: Process A1 completed a CPU burst; 4 bursts to go [Q A0]
time 2760ms: Process A1 switching out of CPU; blocking on I/O until time 3194ms [Q A0]
time 2764ms: Process A0 started using the CPU for remaining 424ms of 1448ms burst [Q empty]
time 3020ms: Time slice expired; no preemption because ready queue is empty [Q empty]
time 3188ms: Process A0 completed a CPU burst; 24 bursts to go [Q empty]
time 3188ms: Process A0 switching out of CPU; blocking on I/O until time 3798ms [Q empty]
time 3194ms: Process A1 completed I/O; added to ready queue [Q A1]
time 3196ms: Process A1 started using the CPU for 129ms burst [Q empty]
time 3325ms: Process A1 completed a CPU burst; 3 bursts to go [Q empty]
time 3325ms: Process A1 switching out of CPU; blocking on I/O until time 4591ms [Q empty]
time 3798ms: Process A0 completed I/O; added to ready queue [Q A0]
time 3800ms: Process A0 started using the CPU for 316ms burst [Q empty]
time 4056ms: Time slice expired; no preemption because ready queue is empty [Q empty]
time 4116ms: Process A0 completed a CPU burst; 23 bursts to go [Q empty]
time 4116ms: Process A0 switching out of CPU; blocking on I/O until time 4592ms [Q empty]
time 4591ms: Process A1 completed I/O; added to ready queue [Q A1]
time 4592ms: Process A0 completed I/O; added to ready queue [Q A0]
time 4593ms: Process A1 started using the CPU for 188ms burst [Q A0]
time 4781ms: Process A1 completed a CPU burst; 2 bursts to go [Q A0]
time 4781ms: Process A1 switching out of CPU; blocking on I/O until time 6279ms [Q A0]
time 4785ms: Process A0 started using the CPU for 3556ms burst [Q empty]
time 5041ms: Time slice expired; no preemption because ready queue is empty [Q empty]
time 5297ms: Time slice expired; no preemption because ready queue is empty [Q empty]
time 5553ms: Time slice expired; no preemption because ready queue is empty [Q empty]
time 5809ms: Time slice expired; no preemption because ready queue is empty [Q empty]
time 6065ms: Time slice expired; no preemption because ready queue is empty [Q empty]
time 6279ms: Process A1 completed I/O; added to ready queue [Q A1]
time 6321ms: Time slice expired; preempting process A0 with 2020ms remaining [Q A1]
time 6325ms: Process A1 started using the CPU for 302ms burst [Q A0]
time 6581ms: Time slice expired; preempting process A1 with 46ms remaining [Q A0]
time 6585ms: Process A0 started using the CPU for remaining 2020ms of 3556ms burst [Q A1]
time 6841ms: Time slice expired; preempting process A0 with 1764ms remaining [Q A1]
time 6845ms: Process A1 started using the CPU for remaining 46ms of 302ms burst [Q A0]
time 6891ms: Process A1 completed a CPU burst; 1 burst to go [Q A0]
time 6891ms: Process A1 switching out of CPU; blocking on I/O until time 8221ms [Q A0]
time 6895ms: Process A0 started using the CPU for remaining 1764ms of 3556ms burst [Q empty]
time 7151ms: Time slice expired; no preemption because ready queue is empty [Q empty]
time 7407ms: Time slice expired; no preemption because ready queue is empty [Q empty]
time 7547ms: Process A2 completed I/O; added to ready queue [Q A2]
time 7663ms: Time slice expired; preempting process A0 with 996ms remaining [Q A2]
time 7667ms: Process A2 started using the CPU for 182ms burst [Q A0]
time 7849ms: Process A2 completed a CPU burst; 13 bursts to go [Q A0]
time 7849ms: Process A2 switching out of CPU; blocking on I/O until time 11595ms [Q A0]
time 7853ms: Process A0 started using the CPU for remaining 996ms of 3556ms burst [Q empty]
time 8109ms: Time slice expired; no preemption because ready queue is empty [Q empty]
time 8221ms: Process A1 completed I/O; added to ready queue [Q A1]
time 8365ms: Time slice expired; preempting process A0 with 484ms remaining [Q A1]
time 8369ms: Process A1 started using the CPU for 73ms burst [Q A0]
time 8442ms: Process A1 terminated [Q A0]
time 8446ms: Process A0 started using the CPU for remaining 484ms of 3556ms burst [Q empty]
time 8702ms: Time slice expired; no preemption because ready queue is empty [Q empty]
time 8930ms: Process A0 completed a CPU burst; 22 bursts to go [Q empty]
time 8930ms: Process A0 switching out of CPU; blocking on I/O until time 9896ms [Q empty]
time 9896ms: Process A0 completed I/O; added to ready queue [Q A0]
time 9898ms: Process A0 started using the CPU for 2516ms burst [Q empty]
time 54903ms: Process A0 terminated [Q empty]
time 61754ms: Process A2 terminated [Q empty]
time 61756ms: Simulator ended for RR [Q empty]