Daemon
This commit is contained in:
@@ -31,6 +31,8 @@ public class Client extends Thread {
|
||||
} catch (InterruptedException e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
System.out.println("Clien " + Thread.currentThread().getId() + " : a pris une portion");
|
||||
|
||||
compartiment.servir(r);
|
||||
try{
|
||||
long temps_servir =new Random().nextInt(300 - 200) + 200;
|
||||
|
||||
Reference in New Issue
Block a user