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.

  1. A.

    Only (i)

  2. B.

    Only (ii)

  3. C.

    Both (i) and (ii)

  4. 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.

Explore the full course: Up Lt Grade Assistant Teacher 2025