Multiple choice

A ____ semaphore may take any integer value.

  1. binary

  2. unary

  3. general

  4. none of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

General (or counting) semaphores can take any non-negative integer value, unlike binary semaphores which are restricted to 0 and 1. This allows them to track multiple available resources or control access for multiple processes.