At a particular time of computation, the value of a counting semaphore is 7. Then 20 P operations and x V operations were completed on this semaphore. If the final value of the semaphore is 5, x will be
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. 18
Explanation
7 − 20 + x = 5, so x = 18.More System Software and Operating System questions
- Requests to access cylinders occur in the sequence 4, 34, 10, 7, 19, 73, 2, 15, 6, 20. The head is currently at cylinder 50, and it takes 1…
- Consider now that T is stored in column-major format. What is the main memory hit ratio?
- Consider that T is stored in column-major format. How many page faults will be encountered?
- With T stored in row-major format, how many page faults will be encountered?
- What is the ratio of page faults for the row-major to the column-major arrangement?
- With T stored in row-major format, what is the main memory hit ratio?