@@ -53,7 +53,7 @@ public class Generator1 implements Runnable // Callable | |||
laufend = true; | |||
synchronized (LOCK) | |||
{ | |||
LOCK.notify(); | |||
LOCK.notifyAll(); | |||
} | |||
@@ -82,7 +82,7 @@ public class Generator1 implements Runnable // Callable | |||
{ | |||
try | |||
{ | |||
lg.info("WAIT"); | |||
lg.info("WAIT_Gen1"); | |||
LOCK.wait(); | |||
} | |||
catch (InterruptedException ex) |
@@ -53,7 +53,7 @@ public class Generator2 implements Runnable // Callable | |||
laufend = true; | |||
synchronized (LOCK) | |||
{ | |||
LOCK.notify(); | |||
LOCK.notifyAll(); | |||
} | |||
@@ -82,7 +82,7 @@ public class Generator2 implements Runnable // Callable | |||
{ | |||
try | |||
{ | |||
lg.info("WAIT"); | |||
lg.info("WAIT_Gen2"); | |||
LOCK.wait(); | |||
} | |||
catch (InterruptedException ex) |
@@ -53,7 +53,7 @@ public class Generator3 implements Runnable // Callable | |||
laufend = true; | |||
synchronized (LOCK) | |||
{ | |||
LOCK.notify(); | |||
LOCK.notifyAll(); | |||
} | |||
@@ -82,7 +82,7 @@ public class Generator3 implements Runnable // Callable | |||
{ | |||
try | |||
{ | |||
lg.info("WAIT"); | |||
lg.info("WAIT_Gen3"); | |||
LOCK.wait(); | |||
} | |||
catch (InterruptedException ex) |
@@ -25,7 +25,6 @@ public class Zahlengenerator implements Subscriber<Integer[]> // Callable | |||
{ | |||
private static Logger lg = OhmLogger.getLogger(); //Logger sollten immer static sein da sie für alle instanzen loggs ausführen | |||
private int wert; | |||
private Flow.Subscription subscription; | |||
private SubmissionPublisher<Integer[]> wertPublisher; | |||