This program was written based on the popular sandwich-making Chefs problem. This problem was first published as the cigarette-smokers problem by S. Patil in 1971, and is one of several classic process-coordination problems that are used to evaluate facilities for synchronizing concurrent threads and processes.
Using java and readable programming, this program aims to demonstrate the concurrency property using multiple threads to form a primitive multi-threaded program.