代码搜索:thread
找到约 10,000 项符合「thread」的源代码
代码结果 10,000
www.eeworm.com/read/104451/15692243
cpp telnet.cpp
#include
#include
#include "telnet.h"
//
// sock_loop is the thread dedicatd to reading socket input.
// It waits for data from the socket, and then gives it one byt
www.eeworm.com/read/104305/15699567
c example12_1.c
/* example12_1.c */
#include
#include
void thread(void)
{
int i;
for(i=0;i
www.eeworm.com/read/103426/15733058
java prioritybusyflag.java
/*
*
* Copyright (c) 1997-1999 Scott Oaks and Henry Wong. All Rights Reserved.
*
* Permission to use, copy, modify, and distribute this software
* and its documentation for NON-COMMERCIAL purpose
www.eeworm.com/read/103426/15733068
java cpuscheduler.java
/*
*
* Copyright (c) 1997-1999 Scott Oaks and Henry Wong. All Rights Reserved.
*
* Permission to use, copy, modify, and distribute this software
* and its documentation for NON-COMMERCIAL purpose
www.eeworm.com/read/103425/15733112
java sleepinterrupt.java
public class SleepInterrupt extends Object implements Runnable {
public void run() {
try {
System.out.println(
"in run() - about to sleep for 20 seconds");
Thread.sleep(20000);
www.eeworm.com/read/103425/15733147
java cubbyholemain.java
public class CubbyHoleMain extends Object {
private static void print(String msg) {
String name = Thread.currentThread().getName();
System.out.println(name + ": " + msg);
}
public static
www.eeworm.com/read/103425/15733189
java twothread.java
public class TwoThread extends Thread {
public void run() {
for ( int i = 0; i < 10; i++ ) {
System.out.println("New thread");
}
}
public static void main(String[] args) {
TwoThre
www.eeworm.com/read/103425/15733204
java twothreadgetname.java
public class TwoThreadGetName extends Thread {
public void run() {
for ( int i = 0; i < 10; i++ ) {
printMsg();
}
}
public void printMsg() {
// get a reference to the thread runni
www.eeworm.com/read/102981/15751534
java serverconnection.java
/*
* ServerConnection.java
*
* Copyright (C) 2000 Jason M. Hanley
* Released under the GNU General Public License (GPL)
* See license.txt for additional information.
*
* Created on July