user inputs several time points, after program starts, it will create a new thread when reach a time point, every thread should append current running time with its output, result looks like this:
java barbershop -c 1000 1500 2500 4000
current time 0: barber is sleeping....
current time 1000...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.