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.
You might also like to view...
In a table of data, each column in the data source is called a(n) ________
Fill in the blank(s) with correct word
Which of the following is NOT included with each image in a search using Google Images?
A) The image size B) The file type C) The program from which the image was created D) The URL of the image
A calculated ________ is an Excel table feature that takes a formula in a column and automatically adjusts cell references for each row in the table
A) total B) row C) column D) summary
An if-else statement is commonly used to check user inputs for validity before processing them.
Answer the following statement true (T) or false (F)