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...

In a table of data, each column in the data source is called a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

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

Computer Science & Information Technology

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

Computer Science & Information Technology

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)

Computer Science & Information Technology