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 |
Can we have more than one action servlet?
life cycle of an applet?
What is preemptive and Non-preemptive Time Scheduling?
What is the difference between the font and fontmetrics classes?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What is the use of Class.forName
list the types of dialodg
what is the use of State Factories?
How are the elements of a cardlayout organized?
What is the difference between RMI and Socket?
what is meant by JRMP?
What are the states associated in the thread?