Round Robin MCQ Quiz in தமிழ் - Objective Question with Answer for Round Robin - இலவச PDF ஐப் பதிவிறக்கவும்
Last updated on Mar 16, 2025
Latest Round Robin MCQ Objective Questions
Top Round Robin MCQ Objective Questions
Round Robin Question 1:
At time 0, an OS with round-robin scheduling (time quantum = 5 ms) has 5 processes P1, P2, P3, P4, P5 with burst times (ms) 15, 10, 20, 5, 15 respectively. Which of the following is/are true about completion and turnaround time?
Answer (Detailed Solution Below)
Round Robin Question 1 Detailed Solution
Concept:
The round-robin (RR) scheduling algorithm is designed especially for timesharing systems.
It is similar to FCFS scheduling, but preemption is added to enable the system to switch between processes.
A small unit of time, called a time quantum or time slice, is defined.
The ready queue is treated as a circular queue. The CPU scheduler goes around the ready queue, allocating the CPU to each process for a time interval of up to 1-time quantum.
Time quantum = 5 ms
Gantt Chart:
P1 |
P2 |
P3 |
P4 |
P5 |
P1 |
P2 |
P3 |
P5 |
P1 |
P3 |
P5 |
P3 |
0 5 10 15 20 25 30 35 40 45 50 55 60 65
Calculation
Process |
Arrival Time (AT) |
Burst Time (BT) |
Completion Time (CT) |
Turnaround time = CT – AT |
P1 |
0 |
15 |
50 |
50 |
P2 |
0 |
10 |
35 |
35 |
P3 |
0 |
20 |
65 |
65 |
P4 |
0 |
5 |
20 |
20 |
P5 |
0 |
15 |
60 |
60 |
Average turn around time = \(\frac{20 + 35 + 50 + 60 + 65}{5} = 46\)
Round Robin Question 2:
In a Round – Robin scheduling s represents the time of context switching, q represents the time quantum and r represents the average time a process runs before blocking on I/O.
If s < q < r then CPU efficiency is,
Answer (Detailed Solution Below)
Round Robin Question 2 Detailed Solution
Since s< q < r, so number of switches required = r/q
Time wasting during switching = s. r / q
Thus, r + sr/ q = (qr + sr) /q = r(q + s) / q is the actual time during which CPU is busy, where r is the actual time used for the process by CPU
Efficiency = r / (r (q+s)/ q) = q/ q+sRound Robin Question 3:
Which of the following algorithms defines time quantum?
Answer (Detailed Solution Below)
Round Robin Question 3 Detailed Solution
Concept:
Time quantum is defined in round robin scheduling algorithm.
Explanation:
- The period of time for which a process is allowed to run in a pre-emptive multitasking system is generally called the time slice or quantum.
- Each process is assigned a fixed time (Time Quantum/Time Slice) in cyclic way. It is designed especially for the time-sharing system. The ready queue is treated as a circular queue.
- The CPU scheduler goes around the ready queue, allocating the CPU to each process for a time interval of up to 1-time quantum.
- If time quantum for Round Robin scheduling is very large, then it behaves same as FCFS scheduling.
Round Robin Question 4:
Three process P1,P2,P3 are having same arrival time 0 and there burst times are 7,3,2 respectively Using round robin scheduling algorithm ( Time quantum = 2 unit) In which order of execution of process so we get minimum average waiting time and find out that minimum average waiting time.
Answer (Detailed Solution Below)
Round Robin Question 4 Detailed Solution
Concept:
- By logic If we execute process with least burst time, algorithm will give minimum average waiting time hence P3 should be execute first then P2 and then P1.
Calculation:
Queue :
Process table:
Process |
AT |
BT |
CT |
TAT |
WT |
P1 |
0 |
7 |
12 |
12 |
5 |
P2 |
0 |
3 |
7 |
7 |
4 |
P3 |
0 |
2 |
2 |
2 |
0 |
\({\rm{Average\;waiting\;time}} = {\rm{\;}}\frac{{5\; + \;4\; + \;0}}{3} = 3{\rm{\;unit}}\)
Gang chart:
Process |
P3 |
P2 |
P1 |
P2 |
P1 |
AT |
0 – 2 |
2 – 4 |
4 - 6 |
6 – 7 |
7 – 12 |
Hence option 3 is the correct answer.
Round Robin Question 5:
Given CPU time slice of 2 ms and the following list of processes.
Process |
Burst time (ms) |
Arrival time (ms) |
p1 |
3 |
0 |
p2 |
4 |
2 |
p3 |
5 |
5 |
Find average turnaround time and average waiting time using round-robin CPU scheduling?
Answer (Detailed Solution Below)
Round Robin Question 5 Detailed Solution
Gantt Chart with time slice of 2ms
p1 |
p2 |
p1 |
p2 |
p3 |
p3 |
p3 |
0 2 4 5 7 9 11 12
Process Table: (time in milliseconds)
Process |
Burst time (BT) |
Arrival time (AT) |
Completion time (CT) |
Turn-Around time (TAT) = (CT - AT) |
Waiting time (WT) = (TAT - BT) |
p1 |
3 |
0 |
5 |
5 |
2 |
p2 |
4 |
2 |
7 |
5 |
1 |
p3 |
5 |
5 |
12 |
7 |
2 |
|
|
|
|
Sum = 17 |
Sum = 5 |
Average TAT = \(\frac{{17}}{3}\) = 5.66
Average WT = \(\frac{5}{3}\) = 1.66
Round Robin Question 6:
An operating system uses Round Robin scheduling algorithm for pre-emptive scheduling of processes. Consider the following set of processes with their arrival times and CPU burst times in milliseconds.
Process |
Arrival Time |
Burst Time |
P1 |
0 |
5 |
P2 |
3 |
3 |
P3 |
2 |
3 |
Find the average turn around time of the above processes if the time quantum is 1 ms.
Answer (Detailed Solution Below)
Round Robin Question 6 Detailed Solution
Concept:
The round-robin (RR) scheduling algorithm is designed especially for timesharing systems.
It is similar to FCFS scheduling, but preemption is added to enable the system to switch between processes.
A small unit of time, called a time quantum or time slice, is defined.
The ready queue is treated as a circular queue. The CPU scheduler goes around the ready queue, allocating the CPU to each process for a time interval of up to 1-time quantum.
Gantt Chart:
Calculation
Turn around time = completion time – arrival time
Turn around time for
P1 = 11 – 0 = 11
P2 = 10 – 3 = 7
P3 = 9 – 2 = 7
Average turn around time = \(\frac{{11 + 7 + 7}}{3} = \frac{{25}}{3} = 8.33\) msRound Robin Question 7:
Consider 3 processes P1, P2, and P3 shown in the table.
Process |
Arrival Time |
Burst Time |
P1 |
0 |
5 |
P2 |
2 |
4 |
P3 |
4 |
2 |
In the completion order of the 3 processes under the policies SJF and Round Robin (time quantum = 2), which process has the same position?
Answer (Detailed Solution Below)
Round Robin Question 7 Detailed Solution
For SJF, Gantt chart is
Here, the order of completion is -> P1 – P3 – P2
For Round Robin, Gantt chart is
Round Robin Question 8:
Comprehension:
Process | Arrival Time | Burst Time |
P1 | 0 | 5 |
P2 | 2 | 3 |
P3 | 2 | 2 |
P4 | 5 | 3 |
P5 | 6 | 1 |
What is the average turnaround time for these Processes with First Come First Serve (FCFS) scheduling Algorithm?
Answer (Detailed Solution Below)
Round Robin Question 8 Detailed Solution
The correct answer is : Option 3
Key Points
Scheduling Algorithm: First Come First Serve (FCFS)
Gantt chart:
P1 |
P2 |
P3 |
P4 |
P5 |
0 5 8 10 13 14
Process Table:
Process | Arrival Time (AT) | Burst Time (BT) | Completion Time (CT) | Turn Around Time (TAT) |
P1 | 0 | 5 | 5 | 5 |
P2 | 2 | 3 | 8 | 6 |
P3 | 2 | 2 | 10 | 8 |
P4 | 5 | 3 | 13 | 8 |
P5 | 6 | 1 | 14 | 8 |
Average Turnaround Time: \({{5+6+8+8+8} \over 5} = 7.0\)
Important Points:
TAT = CT - AT
Round Robin Question 9:
Comprehension:
Process | Arrival Time | Burst Time |
P1 | 0 | 5 |
P2 | 2 | 3 |
P3 | 2 | 2 |
P4 | 5 | 3 |
P5 | 6 | 1 |
Find the average weighted turnaround time for these process using Highest Response Ratio Next (HRN) Algorithm?
Answer (Detailed Solution Below)
Round Robin Question 9 Detailed Solution
The correct answer is option 2.
CONCEPT:
Highest Response Ratio Next (HRN):
HRN is a non-preemptive scheduling algorithm where the process with the highest response ratio is selected next. The response ratio is calculated as:
Response Ratio = (Waiting Time + Burst Time) / Burst Time
Formula:
Turnaround Time (TAT) = Completion Time (CT) - Arrival Time (AT)
Weighted TAT = Turnaround Time / Burst Time
Steps:
- Select the process with the highest response ratio among all arrived processes.
- Compute completion time, TAT, and weighted TAT.
- Repeat until all processes are scheduled.
Calculated weighted turnaround times:
Process | AT | BT | CT | TAT | WTAT |
---|---|---|---|---|---|
P1 | 0 | 5 | 5 | 5 | 1.00 |
P3 | 2 | 2 | 7 | 5 | 2.5 |
P2 | 2 | 3 | 10 | 8 | 2.67 |
P4 | 5 | 3 | 13 | 8 | 2.67 |
P5 | 6 | 1 | 14 | 8 | 8.0 |
Average Weighted Turnaround Time = \({{1+ 2.5+2.67+2.67+8} \over 5 } = 2.834\)
∴ Hence, the correct answer is 2.834 ms
Round Robin Question 10:
An OS follows round-robin scheduling with time quantum of 4ms. Assuming that the CPU is free now and there are 20 processes waiting in the ready queue, the maximum amount of time that a process waits before getting into the CPU is _________.
Answer (Detailed Solution Below)
Round Robin Question 10 Detailed Solution
The correct answer is 76 ms
Key Points
- In round-robin scheduling, every process gets an equal share of CPU time, which is defined by the time quantum or time slice. Assuming there's no context switching time, each process will get to use the CPU for the duration of the time quantum then get placed at the end of the ready queue.
- In this case, the time quantum is 4 ms and there are 20 processes in total.
- Since one cycle for all the processes to get CPU once equals to "number of processes" times "time quantum", this means one cycle will take 20*4 = 80 ms.
- Given that CPU is free now, the first process doesn't have to wait, so it gets the CPU immediately. But the last process, i.e., the 20th process has to wait for 19 processes (not full 20, because the first process didn't wait) to complete their quanta before getting CPU. That means
- Maximum wait time = (Number of processes - 1) * Time quantum
- Maximum waiting time for a process is 19*4 = 76 ms.
Therefore, option 2), 76ms is correct.