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:
trochas
2024-12-08 11:57:09 +01:00
parent 9f6dabf199
commit 13fe8abe71
5 changed files with 8 additions and 9 deletions

View File

@@ -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();
}
}