Two atomic operations permissible on semaphores are ________ and ________.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: D. wait, signal
Explanation
A semaphore supports exactly two atomic operations in the classical Dijkstra definition: wait() (also written P or down), which decrements the semaphore and blocks the caller if the value goes negative, and signal() (also written V or up), which increments the semaphore and may wake a waiting process. 'Stop' and 'hold' are not standard semaphore operations in any textbook definition. Therefore the correct pair is wait, signal, option (iv).More System Software and Operating System questions
- Three processes share a single counting semaphore S whose initial value is 1. All three execute wait(S) one after another, in the order P2,…
- In the UNIX operating system, when a process creates a child process using the fork() system call, which of the following is genuinely shar…
- A system has 12 instances of a resource R shared among four processes. The maximum need and current allocation of each process are: Process…
- Given 4 GB (≈ 4.3 × 10⁹ bytes) of virtual address space and a page size of 4 KB (= 4 × 10³ bytes), with each page table entry 5 bytes: how…
- A table T with 17 rows and 1024 columns is stored in memory. T[i][j] and the variable temp are 32-bit floating-point values; memory is word…
- Using the same table T (17 rows × 1024 columns, 32-bit word-addressable entries, 16 page frames of 1024 words each, LRU) and the same colum…