代码搜索:thread
找到约 10,000 项符合「thread」的源代码
代码结果 10,000
www.eeworm.com/read/470693/1465188
java thread_alive.java
// Test the status of the isAlive() flag before, during, and after thread
// execution. Check that thread's threadgroup is null after thread exits.
// Origin: Bryce McKinlay
www.eeworm.com/read/470693/1465200
out thread_wait.out
creating thread
new thread running
notifying other thread
thread notified okay
www.eeworm.com/read/470693/1465218
java thread_interrupt.java
// Test interrupt() behaviour on a thread in wait(), sleep(), and spinning
// in a loop.
// Origin: Bryce McKinlay
class Waiter extends Thread
{
public synchronized void ru
www.eeworm.com/read/470693/1465222
java thread_wait.java
// Test basic thread creation and wait/notify functionality.
// Origin: Bryce McKinlay
public class Thread_Wait implements Runnable
{
public static void main(String args[])