Home / Computer Science / Operating System :: Discussion

Discussion :: Operating System

  1. What are the two types of Semaphore?

  2. A.

     Digital Semaphores and Binary Semaphores

    B.

     Analog Semaphores and Octal Semaphores

    C.

     Counting Semaphores and Binary Semaphores

    D.

     Critical Semaphores and System Semaphores

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Semaphore is a simply a variable. This variable is used to solve critical section problem and to achieve process synchronization in the multi processing environment.
    The two most common kinds of semaphores are counting semaphores and binary semaphores. Counting semaphore can take non-negative integer values and Binary semaphore can take the value 0 & 1. only.


Be The First To Comment