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.
The rights regarding freedom of speech, etc conferred by Article 19 (1) of p Constitution of India are available to
What is the enforcement date of the IRDA Act, 1999?
The objects of the Insurance Advisory Committee shall be__________________
No dividend shall be declared or paid by a company for any financial year except_____
Contingent agreements to do or not to do anything, if an impossible event happens, are void ____________
Which of the following does not require opinion of experts?
Criminal breach of trust deals with
What is the maximum amount of interim compensation that can be granted by the Court under Negotiable Instruments Act?
Under Section 125 of CrPC who cannot be ordered to provide maintenance
What is the maximum time period for which a person can be imprisoned in solitary confinement if the total duration of imprisonment is 9 months?