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 |
What are the JSP implicit objects ?
What is the relationship between an event-listener interface and an event-adapter class?
What is Lock Based Protocol and what is its use?
Write a singleton program?
What are Benefits of Connection Pooling?
Is there a guarantee of uniqueness for entity beans?
Define the remote object implementation?
What is local interface. How values will be passed?
What is a sessionfactory? Is it a thread-safe object?
If I define a method in JSP scriplet <%..%>, where will it go after translation into a servlet?
How do you download stubs from a Remote place?
Define prototype?