X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TD1%2Fexo3%2FConsommateur.java;h=a857e7eee42e94c58adc7134c8dc5d0a0796b5b0;hb=da31e6daf7553c6b38ca83c428dd02a3aa8af853;hp=43c811ab6895e80e7f1cfac5dc092aeadadc04c3;hpb=7293fe6dc670d5164859159aab339fa3a4750773;p=TD_SR.git diff --git a/TD1/exo3/Consommateur.java b/TD1/exo3/Consommateur.java index 43c811a..a857e7e 100644 --- a/TD1/exo3/Consommateur.java +++ b/TD1/exo3/Consommateur.java @@ -22,12 +22,12 @@ public class Consommateur implements Runnable { Integer val; while (true) { val = (Integer)buffer.preleve(); - System.out.println (Thread.currentThread().getName() + " a preleve " + val); + System.out.println(Thread.currentThread().getName() + " a preleve " + val); try { Thread.sleep(ThreadLocalRandom.current().nextInt(1001)); } catch (InterruptedException e) { - System.out.println("InterruptedException: " + e); + System.err.println("InterruptedException: " + e); } } }