Parallel Programming WS 2014/2015 - File FAShuttleTest.java
public class FAShuttleTest { public static void main(String[] args) { FAShuttle x = new FAShuttle(); new Car(x).start(); for (int i = 1; i <= 24; i++) { new Passenger(x, i).start(); try { Thread.sleep((int)(Math.random()*1000)); } catch (InterruptedException e) {} } } }
Generiert mit Camelot | Probleme mit Camelot? | Geändert am: 07.12.2014