What is the use of Semaphore?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / anonymous
It is being used to prevent DEADLOCK upto some extent only.
It is a primitive level mechanism.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
how team leaders assign work for the team member like through papers,word document
Why are my checkboxes not being set from on to off?
Explain ioc concept?
What is JTS?
What value does readline() return when it has reached the end of a file?
What method is used to create the daemon thread?
Java is fully object oriented languages or not?
Why do I get a duplicate name error when loading a jar file?
What is private static final long serialVersionUID = 1L;
What is a thread?
Can I run seam with jdk 1.4 and earlier?
Give me simple example of hibernate caching and explain the details of caching????? thanks in adv.