What is the use of Semaphore?

Answers were Sorted based on User's Feedback



What is the use of Semaphore?..

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

What is the use of Semaphore?..

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

What is the use of Semaphore?..

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

Post New Answer

More Advanced Java Interview Questions

What are the JSP implicit objects ?

1 Answers   eMids,


What is the relationship between an event-listener interface and an event-adapter class?

0 Answers  


What is Lock Based Protocol and what is its use?

2 Answers   Wipro,


Write a singleton program?

0 Answers  


What are Benefits of Connection Pooling?

2 Answers  






Is there a guarantee of uniqueness for entity beans?

0 Answers  


Define the remote object implementation?

0 Answers  


What is local interface. How values will be passed?

0 Answers  


What is a sessionfactory? Is it a thread-safe object?

0 Answers  


If I define a method in JSP scriplet <%..%>, where will it go after translation into a servlet?

8 Answers   HeadStrong,


How do you download stubs from a Remote place?

1 Answers  


Define prototype?

0 Answers  


Categories