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

Where the user store resides in OS?

795


What is load sharing in operating system (os)?

949


Binding of instructions and data to memory?

887


What is a virtual memory?

758


What are the differences between Real Time Operating System (RTOS) and General Purpose Operating Systems (GPOS)?

777


What is disk operating system in computer?

702


What are the types of files?

733


What are co-operating processes?

802


What are read-write locks?

780


Explain smp.

762


What is resource allocation graph?

927


What resources are used when a thread created? How do they differ from those when a process is created?

750


Explain the purpose of the open() and close() operations.

1881


What is the purpose of hard disk?

812


List advantages and disadvantages of dynamic memory allocation vs. static memory allocation.?

892