Mutual exclusion primitives can be implemented with busy waiting or with blocking. Discuss the applicability and relative merits of each approach.
What will be an ideal response?
This is one of the many “trade-offs” questions in the text.Two alternative approaches are listed. Each has advantages and disadvantages. Each technique works correctly. So why choose one over the other? With the busy waiting solutions, the processor loops until the thread may proceed; the moment the thread may proceed, it does, if indeed the thread is in the running state at the time. If not, the thread proceeds as soon as it enters the running state again. The problem with this method is that it can waste processor time if the thread is delayed considerably before it may proceed. With the blocked method, no processor time is wasted. But the thread yields the processor and enters the blocked state. Thus, when the thread may proceed, the thread first has to make the state transition from the blocked state to the ready state and work its way to the front of the ready queue before the thread may proceed. In real-time applications, threads need to be able to react immediately. Since moving a thread from a blocked state into the ready queue requires overhead, busy waiting is useful for real-time systems.
You might also like to view...
In Performance Monitor, what indicator can be used to check how busy a particular disk is?
A. Disk Stat B. Swap Space C. % Swap D. % Disk Time
Which of the following is a table of MAC addresses and port mapping used by a switch to identify connected network devices?
a. CAM b. ARP c. ARP-A d. ipconfig /all
It is important in Excel when creating subtotals, that you select the column headings along with your data
Indicate whether the statement is true or false
Which of the following selection methods selects an entire word and its following space?
A. single-clicking the word B. triple-clicking the word C. double-clicking the word D. a and c