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?
2
Each completed P operation decreases the counting semaphore by one; each V operation increases it by one. Its final value is \(7-20+15=2\).
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?
The distributed system is a collection of (P) and communication is achieved in distributed system by (Q) , where (P) and (Q) are :
Names of some of the Operating Systems are given below :
(a) MS-DOS (b) XENIX (c) OS/2
In the above list, following operating systems didn’t provide multiuser facility.
Which of the following statements are TRUE about Privileged Instructions ?
(A) It can only be executed by the Operating System kernel and not by user applications.
(B) It is designed to perform operations that can directly affect the hardware or system state such as I/O operations or changing memory management setting.
(C) User applications can execute privileged instructions if they have to correct permissions, set by the Operating System.
(D) It usually executed in user mode to ensure the safety and security of the system.
Choose the correct answer from the options given below :
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: