Computer Science: An Overview: Global Edition (12th Edition)

Published by Pearson Higher Education
ISBN 10: 1292061162
ISBN 13: 978-1-29206-116-0

Chapter 3 - Operating Systems - Chapter Review Problems - Page 164: 24

Answer

See explanation

Work Step by Step

The set-and-clear flag system is a simple method for managing device allocation in which each device has a flag indicating whether it is free (clear) or busy (set). While easy to implement, it has several drawbacks: Drawback: Risk of race conditions - If two processes check the flag simultaneously, both might see the device as free and try to allocate it at the same time. - This can lead to conflicts, data corruption, or system crashes. Other limitations - No automatic queuing: Processes must poll the flag repeatedly (busy waiting) until the device becomes free, wasting CPU time. - No priority handling: All processes compete equally; the system cannot prioritize urgent requests. - Scalability issues: With many devices or processes, the simple flag system becomes inefficient and error-prone.
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.