I am trying to learn thread interrupt and how to make a thread terminate without calling stop. public class Test …
java multithreading concurrency java-threads interruptionsynchronized (Foo.class) { while (someCondition) { try { Foo.class.wait(); } catch (InterruptedException e) { e.printStackTrace(); } } } It seems that this thread both …
java multithreading wait notify interruption