Unstable test (multiple exceptions)
This commit is contained in:
parent
d1061221e8
commit
6cc0bb434b
@ -63,21 +63,9 @@ public class MakkahCity {
|
|||||||
clearDoneCivilVehicles();
|
clearDoneCivilVehicles();
|
||||||
for (Vehicle vehicle : listOfVehicles) {
|
for (Vehicle vehicle : listOfVehicles) {
|
||||||
VMover m = new VMover(vehicle);
|
VMover m = new VMover(vehicle);
|
||||||
threads.add(new Thread(m));
|
//threads.add(new Thread(m));
|
||||||
}
|
Thread t = new Thread(m);
|
||||||
for (int i = 0; i < threads.size(); i += 4){
|
t.start();
|
||||||
threads.get(i).start();
|
|
||||||
threads.get(i+1).start();
|
|
||||||
threads.get(i+2).start();
|
|
||||||
threads.get(i+3).start();
|
|
||||||
try {
|
|
||||||
threads.get(i).join();
|
|
||||||
threads.get(i+1).join();
|
|
||||||
threads.get(i+2).join();
|
|
||||||
threads.get(i+3).join();
|
|
||||||
} catch (InterruptedException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//noise based on time of day (From PDate)
|
//noise based on time of day (From PDate)
|
||||||
firstDayTimeMan.step(Calendar.MINUTE, 1);
|
firstDayTimeMan.step(Calendar.MINUTE, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user