[阅读: 449] 2007-01-23 08:12:39
interrupted
public static boolean interrupted()
Tests whether the current thread has been interrupted. The interrupted status of the thread is cleared by this method. In other words, if this method were to be called twice in succession, the second call would return false (unless the current thread were interrupted again, after the first call had cleared its interrupted status and before the second call had examined it).
Returns:
true if the current thread has been interrupted; false otherwise.
See Also:
isInterrupted()
问题时,如果current thread has been interrupted,那么执行这个函数的判断是在哪个线程中之行的? 这不是自相矛盾吗?