Lines Matching full:interrupt
13 <li><a href="#StopThread">Interrupt Running Code</a></li>
74 <h2 id="StopThread">Interrupt Running Code</h2>
76 To stop a task, you need to interrupt the task's thread. To prepare to do this, you need to
94 To interrupt a thread, call {@link java.lang.Thread#interrupt Thread.interrupt()}. Notice that
97 interrupt it, by placing the access in a <code>synchronized</code> block. For example:
119 // if the Thread exists, post an interrupt to it
121 thread.interrupt();
130 In most cases, {@link java.lang.Thread#interrupt Thread.interrupt()} stops the thread
131 immediately. However, it only stops threads that are waiting, and will not interrupt CPU or
133 any pending interrupt requests before attempting an operation :