Explain how the disabling and enabling of interrupts is useful in implementing mutual exclusion primitives on uniprocessor systems.

What will be an ideal response?

Actually, implementing mutual exclusion primitives in this way is quite straightforward. When a thread executes enterMutualExclusion(), all interrupts are disabled. Then the thread can run its critical section uninterrupted. When the thread executes exitMutual- Exclusion(), interrupts are re-enabled.

Computer Science & Information Technology

You might also like to view...

A ________ is a file containing related one or more worksheets

Fill in the blank(s) with correct word

Computer Science & Information Technology

The ________ property in Excel defines the cell to which the ListBox, ComboBox, and TextBox controls are bound

A) RowSource B) TextAlign C) Caption D) ControlSource

Computer Science & Information Technology