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 |
Dear freinds... I want to know how to write self mapping for a table using hibernate?
Hi I have joined java course. I also want additional help from any tutorials website. Please suggest me tutorials which provides easy to understand online applet tutorials?
What is a class loader? What are the different class loaders used by jvm?
A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions
In howmany ways a thread can be created?
what are the activation groupworks?
What is ioc concept?
Why are my checkboxes not being set from on to off?
How to add new JTabbed pane?
why static class in java
Explain the advantages and disadvantages of detached objects.
How many requests can a server fetch at a time?