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
- Match List I with List IIList I List II (a) LRU (I) A page is written to secondary memory only when it has been selected for replacement (b…
- Arrange the following levels of interrupt protection within the Linux kernel in order of increasing priority. (a) User-mode programs (b) Bo…
- Statement (I): A thread is a dispatchable unit of work that does not execute sequentially and is not interruptible. Statement (II): It is n…
- Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R. Assertion A: I/O protection is ensure…
- Consider the following statements: S1: The LRU page-replacement algorithm suffers from Belady's anomaly. S2: Shortest-remaining-time-first…
- Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R. Assertion A: A process invokes a libr…