17. Prog_MCQ_2 performed A counting semaphore has a value of 7. After 20 wait operations and some signal operations were performed, the value of the semaphore becomes 5. How many signal operations were Pick ONE option 18 22 10 20
Added by Sara J.
Close
Your feedback will help us improve your experience
Samriddhi Singh and 70 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
The value of a counting semaphore is 7 . Then 15 wait operations and 10 signal operations were completed on this semaphore. The resulting value of semaphore is (A) 5 (B) 7 (C) 2 (D) 0
OPERATING SYSTEM
INTERPROCESS COMMUNICATION, CONCURRENCY AND SYNCHRONIZATION
At a particular time of computation, the value of counting semaphore is 7 . Then 20 wait operations and ' $x$ 'signal operations were completed on this semaphore. If the final value of the semaphore is 5 , what is $x$ ? (A) 18 (B) 13 (C) 5 (D) 0
A process using a semaphore has a start value of 1 for its semaphore. Since the start of execution of the program, 12 signal operations were completed. How many wait operations have been completed so far if the current value of semaphore is 6 ? (A) 1 (B) 5 (C) 7 (D) 11
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD