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.
Sowing and harvesting months of Aus rice is:
Bamboos are a diverse group of mostly evergreen perennial flowering plants making up the subfamily Bambusoideae of the grass family Poaceae. Dendrocal...
Which of the following thinning methods starts from the suppressed class and progresses to the dominated class?
Practice involves cutting or heading back the main stem of a tree at a certain height from the ground level. This practice encourages the growth of new ...
What is an ‘Improvement felling’ in the context of forestry?
Which trees in an even-aged stand have crowns that occupy a subordinate position in the canopy, receiving some direct light from above but none from the...
Interveinal chlorosis in young leaves is caused due to the deficiency of
Downy mildew or green ear disease of bajra is caused by
According to Champion and Seth (1967), which is NOT one of the 5 major groups of forests in India?
What type of forest is composed of trees of different ages with more than 25% age difference permitted?