Practice mode Operating Systems

In the first readers-writers problem, which party may starve?

Correct answer B. Writers

Explanation

The first readers-writers problem gives readers priority: no reader waits just because a writer is waiting, so a steady stream of readers can keep the shared data busy and a writer may never get in. The second readers-writers problem gives writers priority and can starve readers instead. Many readers can share access because reading does not change the data.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.