Which of the following statements is/are true about Semaphores in operating…
2022
Which of the following statements is/are true about Semaphores in operating systems?
(i) It is an integer variable that can be accessed only through two functions wait() and signal().
(ii) It can be used to deal with the n-process critical section problem.
- A.
Only (i)
- B.
Only (ii)
- C.
Both (i) and (ii)
- D.
Neither (i) nor (ii)
Attempted by 239 students.
Show answer & explanation
Correct answer: C
Statement (i) is true because semaphores are integer variables accessed via wait() and signal(). Statement (ii) is true as they solve the n-process critical section problem. Thus, both statements are correct.