send mail to support@abhimanu.com mentioning your email id and mobileno registered with us! if details not recieved
Resend Opt after 60 Sec.
By Loging in you agree to Terms of Services and Privacy Policy
Claim your free MCQ
Please specify
Sorry for the inconvenience but we’re performing some maintenance at the moment. Website can be slow during this phase..
Please verify your mobile number
Login not allowed, Please logout from existing browser
Please update your name
Subscribe to Notifications
Stay updated with the latest Current affairs and other important updates regarding video Lectures, Test Schedules, live sessions etc..
Your Free user account at abhipedia has been created.
Remember, success is a journey, not a destination. Stay motivated and keep moving forward!
Refer & Earn
Enquire Now
My Abhipedia Earning
Kindly Login to view your earning
Support
Type your modal answer and submitt for approval
Which of the following "semaphore" can take the non-negative integer values ?
Binary Semaphore
Counting Semaphore
Real Semaphore
All of the above
- Understanding Semaphores in Computing:
- Semaphores are synchronization tools used to control access to shared resources in concurrent programming.
- Binary Semaphore: Also known as mutex, these can only be 0 or 1, thus cannot be non-negative integers other than these two values.
- Counting Semaphore: Can take non-negative integer values and is used to manage multiple instances of a resource.
- Real Semaphore: Not a standard term in semaphore terminology.
- Option Analysis:
- Option 1 - Binary Semaphore: Incorrect, as it only holds 0 or 1.
- Option 2 - Counting Semaphore: Correct, because it can take a wide range of non-negative integer values to manage multiple resources.
- Option 3 - Real Semaphore: Incorrect, as it's not a recognized concept.
- Option 4 - All of the above: Incorrect, given the explanation above.
- The correct answer is Counting Semaphore from Option 2.
Access to prime resources
New Courses