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

List the possible threads a thread can have?

545


How do I go to a specific line in vi?

578


What is operating system in english?

531


How do I find my os version?

539


Are there any problems that the cpu faces? Have any measures been taken to make it more efficient?

740






Why is ram also known as volatile memory?

685


Can you move programs from c drive to d?

507


Is microsoft edge replacing internet explorer?

524


What command is used to remove the password assigned to a group?

554


Is 64bit better than 32bit?

555


What are merits and demerits of systems supporting multiple file structure and systems supporting a stream of bytes?

604


What is the difference between micro kernel and macro kernel?

660


What is the difference between a file and a directory?

574


what is difference between xp & 2003?

1542


Explain the difference between logical & physical address.

609