Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Difference between loadclass and class.forname?

0 Answers  


What is waiting state? In what ways a thread can enter into waiting state?

2 Answers   Wipro,


whats is mean by class.forName() whats the return type of class

6 Answers   SolutionNET,


Can I use javascript to submit a form?

0 Answers  


What value does read() return when it has reached the end of a file?

0 Answers  


Do I need to import javlang package any time? Why ?

0 Answers  


Why does most servlets extend HttpServlet?

4 Answers   Accenture, Wipro,


Can I run seam with jdk 1.4 and earlier?

0 Answers  


Wt is the main difference between Java and Java J2EE and Advanced java?

5 Answers   Wipro,


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

0 Answers  


What is the difference between a static and a non-static inner class?

0 Answers  


Does Java pass arguments by value or reference?

5 Answers   HeadStrong,


Categories