X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TD1%2Fexo3%2FBufferCirc.java;h=e03e8ea950e2cdd3ab244bde76454722f2abbd90;hb=3657cead42bd7dabf2eab5be477c3730fe7f89b2;hp=45710851abd01031ba4f05516ddf75b86c1ffd5e;hpb=18eb400ba6dc197a9be104038fa60055bcd83813;p=TD_SR.git diff --git a/TD1/exo3/BufferCirc.java b/TD1/exo3/BufferCirc.java index 4571085..e03e8ea 100644 --- a/TD1/exo3/BufferCirc.java +++ b/TD1/exo3/BufferCirc.java @@ -33,8 +33,7 @@ public class BufferCirc { while(isFull()) { try { System.out.println("Buffer is full: " + Thread.currentThread().getName() - + " is waiting, size: " + nbObj); - + + " is waiting, size: " + nbObj); wait(); } catch (InterruptedException e) {} @@ -51,7 +50,7 @@ public class BufferCirc { while(isEmpty()) { try { System.out.println("Buffer is empty: " + Thread.currentThread().getName() - + " is waiting, size: " + nbObj); + + " is waiting, size: " + nbObj); wait(); } catch (InterruptedException e) {}