X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TD1%2Fexo3%2FProducteur.java;h=732fafa22097c4a0e83b0cec23984c0b1f1a5da2;hb=bdbcb0e4ae5bd4102793377fc26055db87ce3557;hp=f3cc123ac18ba582eba727a017023a0e29b176ee;hpb=7293fe6dc670d5164859159aab339fa3a4750773;p=TD_SR.git diff --git a/TD1/exo3/Producteur.java b/TD1/exo3/Producteur.java index f3cc123..732fafa 100644 --- a/TD1/exo3/Producteur.java +++ b/TD1/exo3/Producteur.java @@ -23,13 +23,13 @@ public class Producteur implements Runnable { public void run() { while (true) { buffer.depose(new Integer(val)); - System.out.println (Thread.currentThread().getName() + " a depose " + val); + System.out.println(Thread.currentThread().getName() + " a depose " + val); val++; try { Thread.sleep(ThreadLocalRandom.current().nextInt(101)); } catch (InterruptedException e) { - System.out.println("InterruptedException: " + e); + System.err.println("InterruptedException: " + e); } } }