Vidyalelo
Computer Fundamentals · Q255

Operating System

Computer Related · Computer Fundamentals · question 255

Q255

What are the two types of Semaphore?

A.
Digital Semaphores and Binary Semaphores
B.
Analog Semaphores and Octal Semaphores
C.
Counting Semaphores and Binary Semaphores
Answer
D.
Critical Semaphores and System Semaphores

Answer: Option C

Solution

Answer: Option C
Solution:
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.