An adaptive lock is a mutual exclusion lock that __________.
a) can either be held by one process in exclusive mode or several processes in shared mode
b) allows a process to specify the amount of time it will hold the lock; other waiting processes can use this time to determine whether to spin or block.
c) allows the system to change whether the lock is spinning or blocking based on the system load
d) allows the system to switch between allowing only kernel-mode components to hold the lock and allowing all processes to hold the lock
c) allows the system to change whether the lock is spinning or blocking based on the system load
You might also like to view...
A hospital proposes to introduce a policy that any member of clinical staff (doctors or nurses) who takes or authorises actions that leads to a patient being injured will be subject to criminal charges. Explain why this is a bad idea, which is unlikely to improve patient safety and why it is likely to adversely effect the resilience of the organization.
What will be an ideal response?
There are three compiler warnings with this code. Can you spot them?
``` int main() { float a = 4.0, b = 8.0, c = 1.5; int x = 5, y = 7.5, z = 19.0; float q, r; int s, t; s = x + z/y*c; t = b/a * b*x + c; q = y * a+a * c; r = z % x+b/a; ```
The 8b/10b data encoding used by the PCI express bus is 20% less efficient than using some other forms of data encoding. So why is it used?
What will be an ideal response?
A processor is also known as a CPU.
Answer the following statement true (T) or false (F)