CS FundamentalsHardProduct-company MCQ pattern
Cylinders 0–199, head at 72 currently moving towards cylinder 0. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Under SCAN, what is the total head movement?
- A. 257 cylinders
- B. 318 cylinders
- C. 241 cylinders
- D. 290 cylinders
Correct answer: A. 257 cylinders
Down: 47, 25, 8 then on to cylinder 0 (72 cylinders), then up to 95, 110, 130, 160, 185 (185 cylinders). Total = 72 + 185 = 257. Turning at 8 instead of 0 is LOOK and gives 241; 318 is SCAN in the upward direction.
More Operating Systems questions
- Cylinders 0–199, head at 72 moving towards higher cylinders. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Under C-SCAN, counting the…
- 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 /…