Two atomic operations permissible on Semaphores are __________ and __________.
wait, signal
The two semaphore operations are wait (P/acquire) and signal (V/release). Wait acquires an available permit or waits until one is available; signal releases a permit and may wake a waiter. Their updates and coordination must be atomic to prevent races.
Match List I with List II:
| List I | List II | ||
| (A) | Least frequently used | (I) | Memory is distributed among processors |
| (B) | Critical Section | (II) | Page replacement policy in cache memory |
| (C) | Loosely coupled multiprocessor system | (III) | Program section that once begin must complete execution before another processor access the same shared resource |
| (D) | Distributed operating system organization | (IV) | O/S routines are distributed among available processors. |
Choose the correct answer from the options given below:
At a particular time of computation, the value of a counting semaphore is 7. Then 20 P(wait) operations and 15 V(signal) operations are completed on this semaphore. What is the resulting value of the semaphore?
Which interprocess communication model is defined by cooperative processes exchanging messages through explicit send and receive operations, rather than reading and writing a shared memory region?
A counting semaphore is initialized to 8. 3 wait() operations and 4 signal() operations are applied. Find the current value of semaphore variable.
Which of the following is/are the common services provided by an operating system?