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

Brief description about local interfaces?

908


Is there a guarantee of uniqueness for entity beans?

750


Why use a datasource when you can directly specify a connection details?

769


What modifiers may be used with an inner class that is a member of an outer class?

810


Can I have an action without a form?

821


Why does the option tag render selected=selected instead of just selected?

933


What are the different types of exception?

790


Explain RMI Architecture?

820


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

763


Difference between loadclass and class.forname?

801


What is bean? Where can it be used?

798


Can I map more than one table in a cmp?

794


Why is string immutable in java?

813


What are the difference between RMI and CORBA?

831


What restrictions are placed on the location of a package statement within a source code file?

853