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?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. 2
Explanation
7 − 20 + 15 = 2.
More System Software and Operating System questions
- The minimum number of page frames that must be allocated to a running process in a virtual memory environment is determined by
- A computer has six tape drives with (n) processes competing for them. Each process may need two drives. What is the maximum value of (n) fo…
- Which of the following UNIX/Linux pipes will ⋅c count the number of lines in all the files having h and as their extension in the current w…
- Which of the following statement/s is/are true? (i) Windows XP supports both peer-peer and client-server networks. (ii) Windows XP implemen…
- In Linux operating system environment _______ command is used to print a file.
- To overcome difficulties in Readers-Writers problem, which of the following statement/s is/are true? (i) Writers are given exclusive access…