What is a semaphore?

Answer Posted / dibya jyoti(titanmtp)

Semaphore is a technique in which we can avoid the mutual
exclusion problem.or in other words we say it as the
protected variable(ie.They are used for process sync and
are used to resolve deadlock conditions.)
That means if there are many proceess sharing
a same resources then other process must wait it until the
process in critical section is completed as the process in
critical section is completed its send a signal to the
other process to enter a critical section.
basically it is done in two types
1*General semaphore or (counting semaphore)
2*Binary semaphore or (Mutex)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run a curl command?

553


How do I change my local disk?

524


What is the difference between kernel and operating system?

526


What is the best memory for a laptop?

562


What happens if you turn off computer during update?

492






What is difference between kernel and os?

563


Which one is the best operating system?

527


Will disk cleanup delete my files?

515


what kind of operating(s)systems would be needed (and explain why) in an environment where there exist various cluster of networks which are all interconnected in different geographical areas with strong emphasis on online applicating process.

1648


what is gr-edge edit?

1719


What causes a corrupt operating system?

523


Does redhat use yum?

510


What is a file in computer terms?

532


Can I install chrome os on my laptop?

551


How do you say gnu?

521