CS FundamentalsHardAmazon · Microsoft MCQ pattern
Cylinders 0–199, head at 72 moving towards higher cylinders. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Under C-SCAN, counting the return sweep from 199 to 0 as head movement, what is the total head movement?
- A. 318 cylinders
- B. 373 cylinders
- C. 329 cylinders
- D. 374 cylinders
Correct answer: B. 373 cylinders
Up to 199 servicing 95…185: 127. Return 199 → 0: 199. Then 8, 25, 47: 47. Total = 127 + 199 + 47 = 373. C-LOOK (no trip to the ends) gives 329; SCAN gives 318.
More Operating Systems questions
- Cylinders 0–199, head at 72 moving towards higher cylinders. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Which two algorithms give the…
- 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…