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 |
Wt is the main difference between Java and Java J2EE and Advanced java?
What is daemon thread?
What is abstract schema?
Explain Object Serialization and it can be used?
what is JTA ?
What are local interfaces? Describe.
In connection pool,when 100 clients are requesting, in pool 100 objects is there, when another client is making request how it will work
What is Lock Based Protocol and what is its use?
which book is better for jdbc ,servlets and jsp
how to use debug in my elipse to solve problems that exist in my project
What are the methods used for inter-thread communication? and in what class these methods are defined?
what is the Remote Stub?