Wednesday 3 June 2020

UGC NET Computer Science December 2019 | Question 80

Question 80
Given CPU time slice of 2ms and following list of processes.
ProcessBursttime
(ms)
Arrival
time
P130
P242
P355

Find average turnaround time and average waiting time using round robin CPU scheduling?
  1. 1. 4, 0
  2. 2. 5.66, 1.66
  3. 3. 5.66, 0
  4. 4. 7, 2
Answer : 2. 5.66, 1.66

Explanation
Given data:
CPU time slice = 2 ms
Sheduling Algorithm : Round Robin CPU scheduling

Gantt Chart:
P1P2P1P2P3P3P3
0245791112

ProcessBursttime
(ms)
Arrival
time
Completion
time
Turn around
time
Watiting
time
P130552
P242751
P3551272

Average Turnaround Time
= ( 5 + 5 + 7 ) / 3
= 5.66

Average Waiting Time
= ( 2 + 1 + 2 ) / 3
= 1.66

So, option 2 is correct answer.

PreviousNext
UGC NET CS December 2019 - Question 79UGC NET CS December 2019 - Question 81

No comments:

Post a Comment

UGC NET Computer Science December 2019 | Question 16

Question 16 In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding language. 'BFJPV' wil...

Popular Posts