代码搜索:thread
找到约 10,000 项符合「thread」的源代码
代码结果 10,000
www.eeworm.com/read/377944/9257002
txt java 线 程 的 讨 论 与 应 用 (转).txt
作者:jeru
日期:2001-3-7 11:20:12
Java 线 程 的 讨 论 与 应 用
龙 士 工
一、 为 什 么 要 研 究 和 使 用 线 程
一 般 来 说, 计 算 机 正 在 执 行 的 程 序 称 作 进 程(process), 进 程 有 不 同 的 地 址 空 间 并 且 是 在 同 一 系 统 上 运 行 的 不 同 程 序, 如 W
www.eeworm.com/read/377944/9257049
txt 多线程程序设计 (转).txt
作者:jeru
日期:2001-3-7 11:11:58
多线程程序设计
◆ 多线程简介
线程(<mark>thread</mark>)是操作系统分配 CPU 时间的基本实体。每一个应用程序至少有一个线程,也可以拥有多个线程。线程是程序中的代码流。多个线程可以同时运行,并能共享资源。
线程与进程不同,每个进程都需要操作系统为其分配独立的地址空间。而同一进程中的各个线程是在同一块地址空 ...
www.eeworm.com/read/377523/9273031
html counter5frame.html
Display page for Counter5 at www.BruceEckel.comCounter5.java
www.eeworm.com/read/377523/9273046
java counter5.java
//: c14:Counter5.java
// From 'Thinking in Java, 2nd ed.' by Bruce Eckel
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
// Adjusting the priorities of threads.
//
www.eeworm.com/read/377523/9273050
java simplethread.java
//: c14:SimpleThread.java
// From 'Thinking in Java, 2nd ed.' by Bruce Eckel
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
// Very simple Threading example.
public class SimpleTh
www.eeworm.com/read/377523/9273058
java daemons.java
//: c14:Daemons.java
// From 'Thinking in Java, 2nd ed.' by Bruce Eckel
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
// Daemonic behavior.
import java.io.*;
class Daemon extend
www.eeworm.com/read/377454/9275758
java testthreadsyn.java
public class TestThreadSyn {
public static void main(String[] args) {
T a = new T();
Thread r1 = new Thread(a,"A");
Thread r2 = new Thread(a,"B");
r1.start();
r2.start();
}
}
www.eeworm.com/read/377358/9279168
java clocklabel.java
package hotel2;
import java.awt.*;
import javax.swing.JLabel;
import java.util.*;
import java.text.*;
public class Clocklabel extends JLabel implements Runnable{
private Thread clockthread=nu
www.eeworm.com/read/377358/9279184
java~1~ clocklabel.java~1~
package hotel2;
import java.awt.*;
import javax.swing.JLabel;
import java.util.*;
import java.text.DateFormat;
/**
* Title: 客房官理系统
* Description:
* Copyright: Copyright (c) 2004
www.eeworm.com/read/377358/9279186
java~4~ clocklabel.java~4~
package hotel2;
import java.awt.*;
import javax.swing.JLabel;
import java.util.*;
import java.text.DateFormat;
/**
* Title: 客房官理系统
* Description:
* Copyright: Copyright (c) 2004