diff --git a/code/Printer/src/main/java/ch/zhaw/prog2/printer/Printer.java b/code/Printer/src/main/java/ch/zhaw/prog2/printer/Printer.java index 8d2be19..f14b654 100644 --- a/code/Printer/src/main/java/ch/zhaw/prog2/printer/Printer.java +++ b/code/Printer/src/main/java/ch/zhaw/prog2/printer/Printer.java @@ -24,6 +24,9 @@ public class Printer { @Override public void run() { + if(Thread.currentThread().getName().equals("main")){ + return; + } System.out.println(getName() + " run started..."); for (int i = 1; i < 100; i++) { System.out.print(symbol);