Parallel Programming WS 2014/2015 - File BufferTest.java
public class BufferTest { static final int nrOfConsumers = 6; static final int nrOfProducers = 6; static final int bufferSize = 6; public static void main(String[] args) { Buffer buffer = new Buffer(bufferSize); for (int i = 0; i < nrOfConsumers; i++) { new Consumer(i, buffer).start(); } for (int i = 0; i < nrOfProducers; i++) { new Producer(i, buffer).start(); } } }
Generiert mit Camelot | Probleme mit Camelot? | Geändert am: 20.11.2014