// Start producers and consumers
int numProducers = 4;
int numConsumers = 3;
ProdCons15 pc = new ProdCons15(numProducers, numConsumers);
// Let the simulation run for, say, 10 seconds
Thread.sleep(10*1000);
// End of simulation - shut down gracefully
pc.done = true;