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

Can we have more than one action servlet?

7 Answers   HP,


life cycle of an applet?

3 Answers  


What is preemptive and Non-preemptive Time Scheduling?

6 Answers   Cognizant,


What is the difference between the font and fontmetrics classes?

0 Answers  


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

0 Answers  


What is the use of Class.forName

20 Answers   HCL,


list the types of dialodg

1 Answers   Wipro,


what is the use of State Factories?

0 Answers  


How are the elements of a cardlayout organized?

0 Answers  


What is the difference between RMI and Socket?

2 Answers  


what is meant by JRMP?

0 Answers  


What are the states associated in the thread?

3 Answers  


Categories