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
What is jpa used for?
i have make jar file but when i click in this file then arr swhow "no faund main class" plese help me in this problem becose i want to make a jar file as a dxdcutable file
Write a program for the following topic - switch case,looping using fuction calling,nesting,console input output. Aim- to print a menu:- 1-series 2-single value. Each menu having sub menu armstrong or perfect.
What is jpa entitymanager?
What is the purpose of jdk?
What is gui in java with examples?
What are the differences between java’s old java date api and java 8’s date and time api?
When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in java?
What is java bean class?
How many types of jdk are there?
What is data encapsulation?
What is cloning in java?