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 ratio of the breadth to the length of a rectangular field is 2:3. The total cost of cutting the grass of the field at the rate of Rs 6 per m2
Ratio of length to width of a rectangular field is 4:3. If the perimeter of the field is 140 metres, then find the area (in m2) of the field.
The perimeter of a sector of a circle, whose radius is 25 cm, is 66 cm. If the length of a rectangle is 10 cm more than the arc subtended by the sector ...
Each interior angle of a regular polygon is 140°. Then find out how many diagonals are there?
A rectangular plot of size 40 m (length) Â 20 m (width) is to be grazed by a horse leaving a margin of 5 m from all sides for growing plants and also it...
Due to economic surge the price of eggs suddenly reduced by 40%. This enabled a woman to buy 64 more for $30. Then the reduced price per dozen is :
The ratio of volumes of spheres A and B is 8:27. If the difference between their total surface area is 3080 cm² then find diameter of sphere A. (in cm)...
The length of a cuboid is 8 cm and breadth is 7 cm. If the volume of the cuboid is 392 cubic cm, find the total surface area of ​​the cuboid.
Measure of each interior angle of a regular polygon can never be?
If the circumference of a circle is 44 cm then find the area of the circle?