Which of the following statements are CORRECT?
(A) A process always checks the state of the currently executing process to enter its 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/section is the part of a program where shared memory (a shared resource) is accessed.
(E) A printer daemon continuously checks to see if there are any files to be printed.
(A) A process always checks the state of the currently executing process to enter its 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/section is the part of a program where shared memory (a shared resource) is accessed.
(E) A printer daemon continuously checks to see if there are any files to be printed.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. (C) (B) and (D) only
More System Software and Operating System questions
- At a particular time of computation, the value of a counting semaphore is 7. Then 20 P operations and 'x' V operations were performed on th…
- Match List I with List II: List I: (A) Critical region (B) Wait/Signal (C) Working set (D) Deadlock List II: (I) Hoare's monitor (II) Mutua…
- At a particular time of computation, the value of a counting semaphore is 7. Then 20 P operations and 'x' V operations were performed on th…
- Match List I with List II: List I: (A) Critical region (B) Wait/Signal (C) Working set (D) Deadlock List II: (I) Hoare's monitor (II) Mutua…
- In the design protocol of the critical section problem, each process must ask permission to enter the critical section in …… code; it then…
- Consider a system with five processes P0 through P4 and three resource types A, B and C, with 7, 2 and 6 total instances respectively. At t…