代码搜索:thread
找到约 10,000 项符合「thread」的源代码
代码结果 10,000
www.eeworm.com/read/187222/8840975
java grp.java
//: Grp.java
public class Grp implements Runnable {
public void run() {
for (;;) {
System.out.println("thread "+
Thread.currentThread().getName());
try {
Thread.sleep(300);
www.eeworm.com/read/187222/8840978
java tworunnable.java
class TheData {
int x;
float f;
}
class FirstRunnable implements Runnable {
TheData sharedData;
public FirstRunnable(TheData toUse) {
sharedData = toUse;
}
public void run() {
www.eeworm.com/read/187222/8840994
java waitcomm.java
//: WaitComm.java
public class WaitComm {
public static void main(String[] args) {
WFlagSend s = new WFlagSend();
WFlagRec r = new WFlagRec(s);
Thread st = new Thread(s);
Thread rt =
www.eeworm.com/read/187222/8840997
java methodtest.java
public class MethodTest {
public static void main(String[] args) {
FirstThread first = new FirstThread();
SecondThread second = new SecondThread();
first.start();
second.start();
try
www.eeworm.com/read/187222/8840999
java flagcomm.java
//: FlagComm.java
public class FlagComm {
public static void main(String[] args) {
FlagSend s = new FlagSend();
FlagRec r = new FlagRec(s);
Thread st = new Thread(s);
Thread rt = new
www.eeworm.com/read/187222/8841403
java pipe.java
//: Pipe.java
import java.io.*;
public class Pipe {
public static void main(String[] args) throws Exception {
PipedInputStream in = new PipedInputStream();
PipedOutputStream out = new Pi
www.eeworm.com/read/187222/8841407
java crunch.java
//: Crunch.java
public class Crunch implements Runnable {
public int x;
public static void main(String args[]) {
Crunch r1 = new Crunch();
Thread t1 = new Thread(r1);
Thread t2 = new
www.eeworm.com/read/187222/8841415
java waitcomm.java
//: WaitComm.java
public class WaitComm {
public static void main(String[] args) {
WFlagSend s = new WFlagSend();
WFlagRec r = new WFlagRec(s);
Thread st = new Thread(s);
Thread rt =