代码搜索:thread
找到约 10,000 项符合「thread」的源代码
代码结果 10,000
www.eeworm.com/read/470693/1465043
java thread_sleep.java
// Test that Thread.sleep() works.
// Origin: Bryce McKinlay
public class Thread_Sleep
{
public static void main(String args[])
{
try
{
long start = System.c
www.eeworm.com/read/470693/1465135
out thread_interrupt.out
wait()
interrupted - ok
sleep()
interrupted - ok
Busy waiting
interrupted - ok
join()
interrupted - ok
www.eeworm.com/read/470693/1465164
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/470693/1465167
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;
}