Question
Which I/O scheduling algorithm prevents starvation of
requests?Solution
The SCAN scheduling algorithm, also called the Elevator Algorithm , prevents starvation by servicing requests in one direction until it reaches the end, then reversing direction. This ensures that every request, regardless of its position, gets serviced within a predictable timeframe.
- How SCAN Works: Requests are arranged based on their positions. The disk arm moves in a single direction, servicing requests, and reverses once it reaches the last request in that direction.
- Prevents Starvation: Since SCAN covers all requests in its path, even those far from the initial direction of the disk arm are eventually served.
- Requests: 98, 183, 37, 122, 14, 124, 65, 67 (Initial Head: 53)
- SCAN Movement: 53 → 37 → 14 → Reverse → 65 → 67 → 98 → 122 → 124 → 183
- This ensures fairness in servicing requests.
- While fair, FCFS can lead to high seek times due to requests being served in the order of arrival without considering their proximity.
- SSTF selects the closest request but may cause starvation for distant requests.
- LOOK is similar to SCAN but does not traverse to the end of the disk; however, it also prevents starvation.
- CLOOK further optimizes LOOK but may still involve longer wait times for requests on the other side of the disk.
Statement: The Ministry of Civil Aviation has proposed amendments to the Civil Aviation Requirements to establish a National No-Fly List and quantify p...
Statement : There are no river sand quarries employing machines and sand extraction is done manually and transportation through carts.
I. The r...
Statement: The alumni of the institute returned to rescue crumbling building of 112-year-old alma mater.
I. The Building of the institute was b...
Statement: Farm fires, being touted as the major reason for unbreathable Delhi air, are shown to account for only 40% of the current spell of deadly ha...
Statement : The mutual fund market is growing at more than 30% in terms of new assets under management.
I . People are slowly moving from inves...
Statement: Automobile majors began the new fiscal on a strong note, posting high double-digit growth in their domestic passenger vehicle sales.
...
Which of the following statements is an example of deductive reasoning?