Consumer producer pattern example implementing java.util.concurrent.Executor and using monitors.