Multi Thread Java, but only one thread working
问题 My Java Threads does not work independently, how to fix it? This is the initial main: Mechanics mechanics = new Mechanics(busShop, "Mechanic 1"); Mechanics mechanics2 = new Mechanics(busShop, "Mechanic 2"); Thread thMechanic = new Thread(mechanics); Thread thMehanic2 = new Thread(mechanics2); thMechanic.start(); thMehanic2.start(); No problem so far, work as expected, so the mechanics do this: public void run() { fixEngine(); } private void fixEngine() { while (true) { busShop.FixEngine