What is the use of Semaphore?

Answer Posted / geeta

Semaphore variable are to make sure that some shared
variable is not being modified/updated simultaneously by
two separate processes/threads.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you pass parameters in RMI? Why do you serialize?

703


To what value is a variable of the string type automatically initialized?

613


Why are my checkboxes not being set from on to off?

650


What is the infobus?

614


What is the relationship between the canvas class and the graphics class?

544






how to use debug in my elipse to solve problems that exist in my project

1766


Do you think that java should have had pointers?

604


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

589


Why won’t the jvm terminate when I close all the application windows?

755


Is the infobus client side only?

613


Is there a guarantee of uniqueness for entity beans?

572


Explain the advantages and disadvantages of detached objects.

577


Define the remote object implementation?

2001


How to pass parameters in RMI?

1691


When is the best time to validate input?

609