Which of the following statements are true? A. If the time quantum is extremely small, round robin can result in a large number of context switches. B. The average turnaround time of a set of processes does not necessarily improve as the time-quantum size increases. C. The average turnaround time can be improved if most processes finish their next CPU burst in a single time quantum. Choose the correct answer from the options given below:
A, B, C
Round-robin scheduling gives each ready process the CPU for at most one time quantum q, then pre-empts it and moves it to the tail of the ready queue. The choice of q controls both context-switch overhead and turnaround time.
A — True. With a very small q, a process is pre-empted many times before its burst ends, so the number of context switches grows very large and overhead dominates (processor sharing).
B — True. Turnaround time does not decrease steadily with q. For example, three processes of 10 time units each finish at 10, 20, 30 (average 20) with q = 10, but at 28, 29, 30 (average 29) with q = 1, while other burst mixes show averages rising and falling as q grows.
C — True. If most processes complete their next CPU burst within one quantum, they leave the CPU without being pre-empted and re-queued, so they finish sooner and the average turnaround time improves. This is the basis of the rule of thumb that about 80% of CPU bursts should be shorter than q.
Since all three statements hold, any choice that omits one of them is incomplete.
A, B, C option is correct.
What is the average waiting time for these processes with non-preemptive Shortest Job First (SJF) scheduling Algorithm?
Calculate the average response time for these processes with nonpreemptive priority Scheduling algorithm? Priority of the process are as follows and consider that all the processes came at zero (0) time. (Note low numbers represent high priority).
| Process | Burst Time | Priority |
|---|---|---|
| P1 | 5 | 3 |
| P2 | 3 | 1 |
| P3 | 2 | 5 |
| P4 | 3 | 4 |
| P5 | 1 | 2 |
Find the average weighted turnaround time for these process using Highest Response Ratio Next (HRN) Algorithm?
When we apply Shortest Job First (SJF) scheduling Policy/algorithm, Process (P2) faces partial starvation and waits for the longer time to execute. Which one of the following non-preemptive algorithms addresses this problem?
What is the average turnaround time for these Processes with First Come First Serve (FCFS) scheduling Algorithm?
Consider a uniprocessor system where new processes arrive at an average of five processes per minute and each process needs an average of 6 seconds of service time. What will be the CPU utilization ?
Match the following :
| List - I | List - II |
| a. Multilevel feedback queue | i. Time-slicing |
| b. FCFS | ii. Criteria to move processes between queues |
| c. Shortest process next | iii. Batch processing |
| d. Round robin scheduling | iv. Exponential smoothening |
Codes :
Which of the following statements is not true for Multi Level Feedback Queue processor scheduling algorithm ?
Consider the following set of processes that need to be scheduled on a single CPU. All the times are given in milliseconds.
| Process Name | Arrival Time | Execution Time |
|---|---|---|
| A | 0 | 6 |
| B | 3 | 2 |
| C | 5 | 4 |
| D | 7 | 6 |
| E | 10 | 3 |
Using the shortest remaining time first scheduling algorithm, the average process turnaround (in milliseconds) is ________.
Given the following processes with their times and priority (lower number indicates higher priority)
| Process | Burst Time | Priority |
|---|---|---|
| P1 | 10 | 3 |
| P2 | 1 | 1 |
| P3 | 2 | 4 |
| P4 | 1 | 5 |
| P5 | 5 | 2 |
Which of the following is a value of average waiting time using priority scheduling algorithm?
| Process | CPU Burst Time (MS) |
| P1 | 24 |
| P2 | 3 |
| P3 | 3 |