What is a binary semaphore? What is its use?

Answer Posted / noel

Binary semaphore has two values 0 and 1. It can be used for
guarding critical section and also for guarding single
resource. Semaphore value 1 indicates, resource is
available, 0 means it is not available.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I check for memory leaks?

554


What first program that the computer runs when the power is turn on?

567


What is the purpose of using the yield method of thread class?

564


How long does it take to chkdsk 1tb?

552


Which is better 32 bit or 64 bit?

543






State two differences between user and kernel space?

527


What does a 64 bit processor mean?

540


What are pages?

589


What is a volatile keyword?

610


What are the 7 elements of communication?

529


What is a mission critical system?

1846


What is the difference between 16 bit and 32 bit?

480


What is virtual memory and where it exhist ?

653


Explain about local and global page replacements?

520


What is chkdsk used for?

532