CS FundamentalsHardProduct-company MCQ pattern
Cylinders 0–199, head at 72 moving towards higher cylinders. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Which two algorithms give the SAME total head movement for this queue?
- A. SCAN and LOOK
- B. SCAN and C-SCAN
- C. SSTF and LOOK
- D. SSTF and C-LOOK
Correct answer: C. SSTF and LOOK
SSTF goes 95, 110, 130, 160, 185 then 47, 25, 8, which is exactly LOOK's order here: both total 113 + 177 = 290. SCAN = 318 (goes on to 199), C-LOOK = 329, C-SCAN = 373.
More Operating Systems questions
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (ms), scheduled by SRTF. Not…
- A disk rotates at 7,200 RPM, has 400 sectors of 512 bytes per track, and an average seek time of 5 ms. What is the average time to read 4…
- Two processes use this code for mutual exclusion; turn is shared and starts at 0. Which property does it FAIL? c // Process i (i = 0 or 1)…
- Producer–consumer with semaphores mutex = 1, empty = N, full = 0. The producer is written as: c wait(mutex); wait(empty); / add item /…
- Match each scheduling algorithm with its property: (P) Round Robin (Q) SRTF (R) Multilevel feedback queue (S) FCFS (1) Moves processes…
- How many of the following statements are correct? 1. On a context switch, the TLB must be flushed unless its entries carry an…