A semaphore is a shared integer variable __________

A. That can not drop below zero

B. That can not be more than zero
C. That can not drop below one
D. That can not be more than one

Explanation: A semaphore is a shared integer variable that can not drop below zero. In binary semaphore, if the value of the semaphore variable is zero that means there is a process that uses a critical resource and no other process can access the same critical resource until it is released. In Counting semaphore, if the value of the semaphore variable is zero that means there is no resource available.

Occurrence: 0, System Administrator 2026

A semaphore is a shared integer variable __________ | That can not drop below zero | CSS, PMS, PPSC, FPSC, KPPSC, SPSC, ISSB and NTS Past Papers | Pakistan's Largest Online Past Papers Database

Leave a comment