Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

C Interview Questions and Answers

Ques. What is semaphore?
Ans. Semaphore is a special variable, it has two methods: up and down. Semaphore performs atomic operations, which means ones a semaphore is called it can not be inturrupted.

The internal counter (= #ups - #downs) can never be negative. If you execute the ?down? method when the internal counter is zero, it will block until some other thread calls the ?up? method. Semaphores are use for thread synchronization.
Is it helpful? Yes No

Most helpful rated by users:

©2020 WithoutBook