CS FundamentalsHardProduct company interview · GATE level
A disk has cylinders 0 to 199. Head is at cylinder 50, moving towards cylinder 199. Pending requests: 182, 20, 97, 64, 160. Using C-SCAN (service requests up to 199, jump to 0 — counted as seek distance 199 — then continue servicing upward), what is the total head movement?
- A. 300
- B. 399
- C. 368
- D. 349
Correct answer: C. 368
Upward from 50: 50→64→97→160→182→199 = 14+33+63+22+17 = 149. Jump 199→0 counts as 199. Then 0→20 = 20. Total = 149 + 199 + 20 = 368 cylinders.
More Operating Systems questions
- A disk has cylinders 0 to 199. The head is at cylinder 50 and moving towards cylinder 0. Pending requests: 182, 20, 97, 64, 160. Using…
- Which statement correctly contrasts deadlock avoidance (Banker's algorithm) with deadlock detection-and-recovery?
- A system with 3 CPU cores uses symmetric multiprocessing (SMP), where every core runs the same copy of the OS kernel and can access any…
- A real-time system has two periodic tasks: Task A with period 20 ms and execution time 5 ms, Task B with period 50 ms and execution time…
- Compare Rate Monotonic Scheduling (RMS, static priority by period) and Earliest Deadline First (EDF, dynamic priority by nearest deadline)…
- A system call interface lets a user program request a kernel service (like opening a file). What is the typical hardware-assisted…