What is the use of Semaphore?

Answer Posted / rajesh

Semaphore is to solve the problem of syncronisation. It is
a monitor, to monitor the critical section of the program.

it can be implemented with the help of the a single
variable and depending upon the value of that variable
thread is allowed to enter in the critical section.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you think that java should have had pointers?

604


how i secure my site with the https protocol.what are the steps?

1738


Explain phantom read?

1741


Do I have to use jsps with my application?

583


What do you mean by Socket Programming?

551






What is the infobus?

614


Do we need to override service() method

1145


which type of objects reference will be given to client?

2034


Is “abc” a primitive value?

619


what are the advantages of JTA over JTS?

1673


For which statements does it make sense to use a label?

591


What class is used to create Server side object ?

1676


What is the relation between the infobus and rmi?

560


What is ioc concept & explain it?

623


How to implement RMI in Java?

2408