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.
India ranks third globally in which hidden cost category according to the FAO 2024 report?
Mark the correct match of tribal dance and their tribe.
Consider the following statements about UNESCO Asia-Pacific Awards for Cultural Heritage Conservation 2023:Â
1.     Recently, three herita...
Who has been reappointed for a second term as the Executive Director of UN Women in 2025?
Who is Mexico's newly elected president?
IREDA has inked a loan pact with SJVN Green Energy for financing Rs 4,444.71 crore for solar power project in ________.
How many wickets did Amit Mishra take in his Test career?
- Where was the first-ever BIMSTEC Youth Summit 2025 held?
Who won the gold medal in the men's javelin throw competition at the Paavo Nurmi Games 2024 in Turku, Finland?
Government lowered the export obligation under a key incentive scheme Export Promotion Capital Goods (EPCG) for 192 products whose exports had declined ...