Producers/Consumers Problem solution and demonstration