Give a better method. Discuss how such a method might be implemented on a multiprocessor system where several threads could in fact attempt enterMutualExclusion() at precisely the same moment.

What will be an ideal response?


A better method would be to choose the threads on a first-come-first-served basis or use some other method that would prevent indefinite postponement. Unfortunately, when threads arrive at the exact same time, we cannot use FCFS meaningfully. So in a multiprocessor system, we might use the processor’s unique processor-ID to prioritize the requests that arrive at the same moment. In a uniprocessor system, only one thread at a time can attempt enterMutualExclusion(), so it is feasible to use a FCFS strategy.

Computer Science & Information Technology

You might also like to view...

All of the following are design elements included in a presentation theme EXCEPT ________

A) colors B) fonts C) graphics D) animations

Computer Science & Information Technology

There are ____ type(s) of methods in a class.

A. one B. two C. three D. four

Computer Science & Information Technology

What is the name of the process that is defined by IEEE 802.1Q to relay traffic from multiple VLANs?

A) VLAN staging B) Broadcast forwarding C) Switchport mode access D) VLAN tagging

Computer Science & Information Technology

The TCP/IPv6 protocol suite is not installed by default on Windows Server 2016.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology