5,474 views
0 votes
0 votes
None of the disk-scheduling disciplines, except $FCFS$, is truly fair (starvation may occur).
a. Explain why this assertion is true.
b. Describe a way to modify algorithms such as $SCAN$ to ensure fairness.
c. Explain why fairness is an important goal in a time-sharing system.
d. Give three or more examples of circumstances in which it is important that the operating system be unfair in serving $I/O$ requests.

1 Answer

0 votes
0 votes

a. New requests for the track over which the head currently resides can theoretically arrive as quickly as these requests are being serviced.

b. All requests older than some predetermined age could be “forced” to the top of the queue, and an associated bit for each could be set to indicate that no new request could be moved ahead of these requests. For SSTF, the rest of the queue would have to be reorganized with respect to the last of these “old” requests.

c. To prevent unusually long response times. As in time shared OS we need everyone should get a fair share of resources they want.

d. Paging and swapping should take priority over user requests. It may be desirable for other kernel-initiated I/O, such as the writing of file system metadata, to take precedence over user I/O. If the kernel supports real-time process priorities, the I/O requests of those processes should be favored
Ref: hscc.cs.nthu.edu.tw › ~sheujp › homework › HW12_ref

Related questions

0 votes
0 votes
0 answers
2
0 votes
0 votes
1 answer
4
akash.dinkar12 asked Mar 22, 2019
1,514 views
Why is rotational latency usually not considered in disk scheduling ? How would you modify $SSTF$, $SCAN$, and $C-SCAN$ to include latency optimization ?