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 |
What is prototype?
What is the relationship between an event-listener interface and an event-adapter class?
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..
What is a class loader? What are the different class loaders used by jvm?
What’s jboss cache in short?
What is aop(assepct oriented programing)?
What if the static modifier is removed from the signature of the main method?
How substring() method of string class create memory leaks?
Explain the stub's and skeleton's functionality?
What is metaspace?
What is a session? Can you share a session object between different theads?
String is immutable.it is true String can be change to mutable How?
6 Answers IBM, Professional Access, TCS,