CS FundamentalsVery hardGATE CS
Four processes arrive at time 0 in the order A (6), B (3), C (1), D (7) (bursts in ms) and are scheduled Round Robin with no switching overhead. For which quantum among 1, 3, 5 and 7 is the average turnaround time the SMALLEST?
- A. q = 1
- B. q = 3
- C. q = 5
- D. q = 7
Correct answer: D. q = 7
Average turnaround: q=1: 11, q=3: 10.75, q=5: 12.25, q=7: 10.5. Average turnaround does not improve monotonically with the quantum; it depends on how many bursts finish within one slice.
More Operating Systems questions
- Reference string: 1, 3, 5, 4, 2, 4, 3, 2, 1, 0, 5, 3, 5, 0, 4, 3. With 3 frames (initially empty), how many page faults does LRU produce?
- Reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6. With 4 frames (initially empty), how many page faults does…
- Reference string: 3, 2, 1, 0, 3, 2, 4, 3, 2, 1, 0, 4. How many page faults does FIFO produce with 3 frames and with 4 frames (both…
- Reference string: 4, 5, 2, 3, 4, 2, 3, 2, 1, 3, 5, 4, 1, 0, 3 frames, initially empty. Using the clock (second-chance) algorithm, where a…
- Reference string: 6, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 3 frames, initially empty. After all references are processed under LRU…
- Reference string: 5, 3, 5, 2, 3, 5, 4, 3, 2, 5, 3, 2 with 3 frames under LRU (initially empty). What is the hit ratio?