Java Multithreading Problem
Write a java program which simulates the below scenario.
In bakery backer is preparing bread continuously and put breads into stock, every customer is buying a packet of bread, if bread is not in stock customer will wait till he/she gets the packet of bread.
I. Every customer gets one packet of bread.
II. Use multithreading system.
III. Program shows stocks of bread, every customerís status
IV. Pass number of customers, speed of the baker in milliseconds to bake bread as argument from command line.