Consider an operating system capable of loading and executing a single sequential user process at a time. The disk head scheduling algorithm used is First Come First Served (FCFS). If FCFS is replaced by Shortest Seek Time First (SSTF), claimed by the vendor to give better benchmark results, what is the expected improvement in the I/O performance of user programs?
GATE CSE 2004Operating System › I/O, Disk Scheduling & File SystemsVerified
GATE CSE 2004 PYQ: Consider an operating system capable of loading and executing a single sequential user process at a time.…
- A
- B
- C
- DCorrect answer
Answer
(D) 0 % 0\% 0%
Approach
The key is to determine whether the disk scheduler ever has more than one pending request to choose from. With only a single sequential user process running and blocking on each I/O operation, the disk request queue is effectively empty, so FCFS and SSTF produce the same service order.
Disk scheduling algorithms such as SSTF improve performance by reordering multiple outstanding requests to reduce total seek time. In a single sequential user process environment, only one request is typically outstanding and the disk is idle between requests, leaving the scheduler nothing to optimize. Thus SSTF offers no benefit over FCFS, so the expected improvement is 0%.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.