All mock tests are FREE till 31 December — register to save your progress

Which of the following statements are CORRECT?
(A) A process always checks the state of the currently executing process to enter the critical section.
(B) Spin locks use busy waiting.
(C) Periodically testing a variable until some value appears is known as busy waiting.
(D) A critical region is the part of the program where shared memory is accessed.
(E) The printer daemon continuously checks to see if there are any files to be printed.
Choose the correct answer from the options given below:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. (B) and (D) Only

Explanation

Spin locks busy-wait (B), and the critical region is the part of the program that accesses shared memory (D). Tanenbaum defines busy waiting as continuously (not periodically) testing a variable, so C as worded is not accepted. The printer daemon periodically checks the spooler directory.

More System Software and Operating System questions