Java  implementation of producer-consumer's classical interprocess communication problem. There is also a example of a wrong solution without synchronization, just to compare the results.