A counting semaphore is initialized to 8. 3 wait ( ) operations and 4 signal () operations are applied. Find the current value of the semaphore variable.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. 9
Explanation
8 − 3 + 4 = 9.
More System Software and Operating System questions
- Which of the following CPU scheduling algorithms is/are supported by LINUX operating system?
- Consider a paging system where translation looks aside buffer (TLB) a special type of associative memory is used with a hit ratio of 80%..…
- A system has 12 tape drives. At time t0, p0 has maximum need 10 and holds 5, p1 needs 4 and holds 2, p2 needs 9 and holds 2. The system is…
- Which of the following interprocess communication model is used to exchange messages among co-operative processes?
- With a 2 ms time slice and processes P1 (burst 3, arrival 0), P2 (4, 2), P3 (5, 5), find the average turnaround and waiting times under rou…
- Which of the following methods are used to pass any number of parameters to the operating system through system calls?