X-Git-Url: https://git.piment-noir.org/?p=TD_SR.git;a=blobdiff_plain;f=TD1%2Fexo3%2FBufferCirc.java;h=3c7a65efc1d554ee7c1415a4414916610d11b293;hp=e03e8ea950e2cdd3ab244bde76454722f2abbd90;hb=ce28a0211974450cf5df46e2065fb39350e029ec;hpb=3657cead42bd7dabf2eab5be477c3730fe7f89b2 diff --git a/TD1/exo3/BufferCirc.java b/TD1/exo3/BufferCirc.java index e03e8ea..3c7a65e 100644 --- a/TD1/exo3/BufferCirc.java +++ b/TD1/exo3/BufferCirc.java @@ -36,7 +36,9 @@ public class BufferCirc { + " is waiting, size: " + nbObj); wait(); } - catch (InterruptedException e) {} + catch (InterruptedException e) { + System.err.println("InterruptedException: " + e); + } } nbObj++; tampon[prem] = obj; @@ -53,7 +55,9 @@ public class BufferCirc { + " is waiting, size: " + nbObj); wait(); } - catch (InterruptedException e) {} + catch (InterruptedException e) { + System.err.println("InterruptedException: " + e); + } } Object outObj = null; nbObj--;