代码搜索:Runnable
找到约 7,725 项符合「Runnable」的源代码
代码结果 7,725
www.eeworm.com/read/366926/9792566
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/366806/9798238
java mydaemon.java
public class MyDaemon implements Runnable
{
// Default Constructor
public MyDaemon()
{
super();
}
// Implement the required method from the Runnable interface
public void run()
{
www.eeworm.com/read/269234/11103781
java sample27_2.java
package wyf.jc;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.concurrent.*;
//定义该类继承自JFrame
public class Sample27_2 extends JFrame implements ActionListener
www.eeworm.com/read/135507/13924986
java foo.java
class Foo implements Runnable
{
private SomeObj someobj;
public void printM1()
{
synchronized(someobj) {
//The code to protect.
}
}
public static void printM2(Foo f)
www.eeworm.com/read/201648/15400307
java threadpooltest.java
public class ThreadPoolTest {
public static void main(String[] args) {
if (args.length != 2) {
System.out.println("Tests the ThreadPool task.");
System.out.pr
www.eeworm.com/read/103425/15733140
java threadpoolworker.java
// uses class ObjectFIFO from chapter 18
public class ThreadPoolWorker extends Object {
private static int nextWorkerID = 0;
private ObjectFIFO idleWorkers;
private int workerID;
private
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/113668/6126645
cpp thread_pthread.cpp
/* $Id: thread_pthread.cpp,v 1.13 2003/10/08 17:43:49 mbn Exp $
**
** ClanLib Game SDK
** Copyright (C) 2003 The ClanLib Team
** For a total list of contributers see the file CREDITS.
**
**
www.eeworm.com/read/192647/8368149
txt 3.txt
我们在做软件开发的时候很多要用到多线程技术。例如如果做一个下载软件象flashget就要用到、象在线视频工具realplayer也要用到因为要同时下载media stream还要播放。其实例子是很多的。
线程相对进程来说是“轻量级”的,操作系统用较少的资源创建和管理线程。程序中的线程在相同的内存空间中执行,并共享许多相同的资源。
在python中如何创建一个线程对象
...
www.eeworm.com/read/391696/8390083
txt day17.txt
5.0新特性:
泛型:
泛型的形式:
类名&接口,表示E继承Numner类实现comparator接口
泛型通配符表示任意类型,仅用于传参