Thread Interruption in Java : Free Java Tutorials
Thread Interruption is an important concept in Java. A thread can interrupt another thread which is in the sleeping state or waiting state by using the interrupt method of thread class. The prototype of interrupt method of Thread class: public void interrupt() If thread t1 calls interrupt method on the object of thread t2 and …
Thread Interruption in Java : Free Java Tutorials Read More »