correction bug compartiment (init libre a true, et boucle while avec un ||, manquait aussi un notifyAll après avoir rempli un compartiment)
This commit is contained in:
@@ -16,9 +16,9 @@ public class Employe_du_buffet extends Thread{
|
||||
buffet[i].wait();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
}
|
||||
System.out.println("Employe Buffer : remplie de stand " + i);
|
||||
System.out.println("Employe Buffer : remplie de stand " + buffet[i].getName() + ", il ne restait plus que " + buffet[i].getQuantite() +" g");
|
||||
buffet[i].remplir();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user