Thread
来源:互联网 发布:php 函数缺省参数 编辑:程序博客网 时间:2024/05/30 05:11
Thread
Class Thread Implemented Interface:Runnable.
A thread ia a thread of execution in a program. The Java Virtual Machine allows an application to have multiple threads of execution runing concurrently.
now look at this constructor:
public Thread(Runnable target)
Allocates a new Thread
object. This constructor has the same effect as Thread(null, target,
gname)
, where gname is a newly generated name. Automatically generated names are of the form "Thread-"+
n, where n is an integer.
this is the example:
new Thread(new Runnable() {
public void run() {
System.out.println(Thread.currentThread().getName() + " : " + ITL.get());
ITL.get().append(", wqf");
System.out.println(Thread.currentThread().getName() + " : " + ITL.get());
}
}).start();
- Thread
- thread
- Thread
- Thread
- thread
- thread
- Thread
- Thread
- Thread
- Thread
- Thread
- Thread
- Thread
- Thread
- Thread
- Thread
- Thread
- Thread
- 使用COleDataSource.DoDropDrag进行往外Drag时要注意的一点
- 隻去掉小數點後,末位的0
- ARM芯片的地址重映射
- [转]从0到1亿美元 ---- PopCap创始人John Vechey自述
- Dojo在Firefox出现Could not load 'dojo.parser'问题的解决方法
- Thread
- 可以錄入負數--設定
- 舞动的灵魂、这一季的雪、让我为自己感伤时间
- 语言国际化
- 数据库性能调优技术系列文章(4)--深入理解散列连接执行计划(摘自老杨)
- 判断php脚本是通过shell访问还是web访问
- jpa + hibernate 的c3p0,proxool 连接池配置
- 深入理解数据库原理系列(1)---日志系统原理(摘自老杨)
- ALV標準顯示內表數據--復制