How Java’s Thread.interrupt() Really Works

In multithreaded Java applications, one of mechanisms for thread communication is the Thread.interrupt() method. At first glance, it may…