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

Who developed JavaScript, and what was the first name of JavaScript?

1 Answers  


Is eclipse a jdk?

0 Answers  


What is cdi bean in java?

0 Answers  


How can one prove that the array is not null but empty?

0 Answers  


What is resultsetmetadata in java?

0 Answers  


What do you understand by numeric promotion?

0 Answers  


What are java’s rules regarding tabs, spaces and newline characters?

0 Answers  


Why are command line arguments passed as a string?

0 Answers  


What is meant by framework in java?

0 Answers  


How do I export a java project?

0 Answers  


What are the differences between java’s old java date api and java 8’s date and time api?

0 Answers  


What is lambda expression in mvc?

0 Answers  


Categories