This commit is contained in:
Minh VU
2024-12-03 15:07:18 +01:00
parent aedd491b7b
commit 9452c0ea77
4 changed files with 27 additions and 25 deletions

View File

@@ -7,8 +7,8 @@ public class Stand_de_cuisson {
while(clients.isEmpty()){
try{
wait();
}catch (Exception e) {
System.out.println(e);
}catch (InterruptedException e) {
e.printStackTrace();
}
}
return clients.poll();
@@ -19,5 +19,6 @@ public class Stand_de_cuisson {
public synchronized void ajouter_client(Client client){
clients.add(client);
notify();
}
}