Unstable test (multiple exceptions)

This commit is contained in:
HeshamTB 2020-11-27 09:11:48 +03:00
parent d1061221e8
commit 6cc0bb434b
Signed by: Hesham
GPG Key ID: 74876157D199B09E

View File

@ -63,21 +63,9 @@ public class MakkahCity {
clearDoneCivilVehicles();
for (Vehicle vehicle : listOfVehicles) {
VMover m = new VMover(vehicle);
threads.add(new Thread(m));
}
for (int i = 0; i < threads.size(); i += 4){
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();
}
//threads.add(new Thread(m));
Thread t = new Thread(m);
t.start();
}
//noise based on time of day (From PDate)
firstDayTimeMan.step(Calendar.MINUTE, 1);