Consumer producer example using only monitors and not other Java API concurrency.