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...


In a barber shop there are 2 doors. customer come in 1
door, leave in other. minimum # of chairs. barber spend his
life in cutting. always barber can cut 1 customer. few
chairs in the shop. if barber busy customer waits, if
chairs full, customer leave. if no customer, barber sleeps.
treat barber and customer as 2 threads. you can use
Semaphore class with arrive and depart and count as
parameter.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Java Related AllOther Interview Questions

Which interceptor is responsible for setting action javabean properties?

0 Answers  


What is the difference between ec2 and lambda?

0 Answers  


What is the current code for the Java 5 code class Root { ?

3 Answers  


What is the difference between a while statement and a do statement?

0 Answers  


What does el mean in java?

0 Answers  


How do I open java console?

0 Answers  


i heard that JVM internally contains pointers...is this true?

4 Answers   Wipro,


What is maven in java?

0 Answers  


ioc vs dependency injection?

0 Answers  


Please can anybody explain what exactly "the project architecture" means???

0 Answers  


What is dto in java?

0 Answers  


What is war file in java?

0 Answers  


Categories