代码搜索:thread
找到约 10,000 项符合「thread」的源代码
代码结果 10,000
www.eeworm.com/read/470713/1453274
java thread_monitor.java
// Test that monitor locks work and are recursive.
// Origin: Bryce McKinlay
class T implements Runnable
{
public int count = 0;
Counter c;
public T (Counter c)
{
www.eeworm.com/read/470713/1453277
java thread_join.java
// Many threads join a single thread.
// Origin: Bryce McKinlay
class Sleeper implements Runnable
{
int num = -1;
public Sleeper(int num)
{
this.num = num;
}
www.eeworm.com/read/470713/1453298
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/470713/1453310
out thread_wait.out
creating thread
new thread running
notifying other thread
thread notified okay
www.eeworm.com/read/470713/1453328
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/470713/1453332
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[])