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 is the difference between the font and fontmetrics classes?

0 Answers  


what is DGC?

1 Answers  


Explain the stub's and skeleton's functionality?

7 Answers  


hi, All are saying that now software field position is not good and in 5-10yrs total software field ll be saturated . is it true? i am unable decide ii continue in this field or not please tell me?

19 Answers  


What invokes a thread?s run() method?

2 Answers  






Where can I find seam examples and documentation?

0 Answers  


What are the different types of exception?

0 Answers  


Explain the advantages and disadvantages of detached objects.

0 Answers  


Can you write Java code for declaration of multiple inheritance in Java ?

6 Answers   Kingshir, Oracle,


What is MOM?

1 Answers   Wipro,


whats is statement and procedure

0 Answers   TCS,


how can u cal servlet from java?

7 Answers  


Categories