Which of the following statements are CORRECT ? (A) A process always check…
2023
Which of the following statements are CORRECT ?
(A) A process always check state of currently executing process to enter critical schema.
(B) Spin locks uses busy waiting.
(C) Periodically testing a variable until some value appear is known as busy waiting.
(D) Critical region is a part of program, where shared memory is kept.
(E) Printer daemon, continuously checks to see if there are any file to be printed.
Choose the correct answer from the options given below :
Answer: B. (B), (C) and (E) — Explanation (brief): (A) False – A process does not check the state of another executing process to enter a critical section. (B) True – Spin locks work using…
- A.
(A) and (B) Only
- B.
(B), (C) and (E)
- C.
(B) and (D) Only
- D.
(B) and (E) Only
Attempted by 91 students.
Show answer & explanation
Correct answer: B
Explanation (brief):
(A) False – A process does not check the state of another executing process to enter a critical section.
(B) True – Spin locks work using busy waiting.
(C) True – Repeatedly checking a variable until a condition is met is busy waiting.
(D) False – A critical section is where shared data is accessed, not where it is kept.
(E) True – A printer daemon continuously checking for print jobs is an example of busy waiting.
✅ Final Answer: B, C and E