代码搜索:thread
找到约 10,000 项符合「thread」的源代码
代码结果 10,000
www.eeworm.com/read/166522/10016987
txt b.java.txt
import java.awt.*;
import java.awt.event.*;
class B extends Thread
{ C my;
Qq my2;
B(C my1,Qq my3)
{
this.my=my1;
my2=my3;
}
public void run()
{
www.eeworm.com/read/166518/10017008
java b.java
import java.awt.*;
import java.awt.event.*;
class B extends Thread
{ C my;
Qq my2;
B(C my1,Qq my3)
{
this.my=my1;
my2=my3;
}
public void
www.eeworm.com/read/166518/10017014
java a.java
import java.awt.*;
import java.awt.event.*;
class A extends Thread
{ Qq my2;
C my;
A (C my1,Qq my3)
{
my=my1;
my2=my3;
}
publ
www.eeworm.com/read/166386/10022051
txt 第5章.txt
《Java就业培训教程》P177的Java原代码
程序清单:ThreadDemo1.java
public class ThreadDemo1
{
public static void main(String args[])
{
new TestThread().run();
while(true)
{
System.out.println("main th
www.eeworm.com/read/166379/10022094
java spritecanvas.java
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;
public class SpriteCanvas extends GameCanvas implements Runnable{
private int drawX = 0;
private int drawY = 0;
www.eeworm.com/read/361994/10024785
java testcanvas.java
/**
* Created by IntelliJ IDEA.
* User: blackstar
* Date: 2008-4-21
* Time: 14:17:25
* To change this template use File | Settings | File Templates.
*/
import javax.microedition.lcdui.*;
www.eeworm.com/read/361936/10027685
java testdeadlock.java
public class TestDeadLock implements Runnable {
public int flag = 1;
static Object o1 = new Object(), o2 = new Object();
public void run() {
System.out.println("flag=" + flag);
if(flag == 1)
www.eeworm.com/read/361936/10027700
java testpriority.java
public class TestPriority {
public static void main(String[] args) {
Thread t1 = new Thread(new T1());
Thread t2 = new Thread(new T2());
t1.setPriority(Thread.NORM_PRIORITY + 3);
t1.star
www.eeworm.com/read/361936/10027702
java tt.java
public class TT implements Runnable {
int b = 100;
public synchronized void m1() throws Exception{
//Thread.sleep(2000);
b = 1000;
Thread.sleep(5000);
System.out.println("b = " + b)
www.eeworm.com/read/361936/10027706
java testsync.java
public class TestSync implements Runnable {
Timer timer = new Timer();
public static void main(String[] args) {
TestSync test = new TestSync();
Thread t1 = new Thread(test);
Threa