diff --git a/src/main/.DS_Store b/src/main/.DS_Store index 6fc28ca30ba855e69eccff05500f5cf5b65411e3..e862d7ee7f108b1277cacb55f81c35b3da12a422 100644 Binary files a/src/main/.DS_Store and b/src/main/.DS_Store differ diff --git a/src/main/java/producerConsumer/Consumer.java b/src/main/java/producerConsumer/Consumer.java index 9b14fba6d832dbc91bb151fcb07a49fd04ba8ae1..27df815d9bad9cf397059663ef2a535e9a9131a5 100644 --- a/src/main/java/producerConsumer/Consumer.java +++ b/src/main/java/producerConsumer/Consumer.java @@ -17,6 +17,6 @@ public class Consumer implements Runnable { } public void consume(String message) { - System.out.println("Cons. " + id + ": prelevato " + message); + System.out.println("Cons. " + id + ": " + message); } } diff --git a/src/main/java/producerConsumer/Producer.java b/src/main/java/producerConsumer/Producer.java index 628d4b52cc27f2b2f4f19417bca9c50a12ee0877..02c1319c81922a24a220a37ccb7df787c21a0fca 100644 --- a/src/main/java/producerConsumer/Producer.java +++ b/src/main/java/producerConsumer/Producer.java @@ -10,7 +10,7 @@ public class Producer implements Runnable { public void run() { while (true) { String message = produce(); - System.out.println("Prod. " + id + ": inserisco " + message); + System.out.println("Prod. " + id + ": " + message); queue.put(message); try { @@ -25,7 +25,7 @@ public class Producer implements Runnable { public String produce() { counter++; - return "Messaggio da " + id + " n. " + counter; + return "Message number " + counter + " from " + id; } }