- 浏览: 80809 次
文章分类
最新评论
-
bailangfei3344:
自我介绍 -
regionwar:
你好,转化为人为:1、不该加锁的不要加锁:局部变量,单线程占用 ...
关于java锁机制的优化 -
danni505:
希望能交流:
msn:danni-505#hotmail.co ...
关于java锁机制的优化 -
ouspec:
收藏的东西不错。
TOP500 -
willpower:
The idea behind is e-sync IO do ...
Rethink the sync
1. 只要程式中的non-Daemon thread都結束了..
就算有Daemon Thread仍在執行中...
程式一樣會被強制結束...
最簡單的例子就是garbage collector thread..
2. 如果某個 Thread 是 daemon thread,則它所產生的所有 threads 天生就
具有 daemon 的特性
3. A daemon thread should be used for some background task that
might provide a service to the applications. e.g. a Server thread
listening on a port for the clients' requests.
出自http://www.vyomworld.com/source/show.asp?ScriptID=176
以下出自http://web.syr.edu/~maaljlay/daemon.html
4. Any Java thread can be a daemon thread. Daemon threads are service
providers for other threads or objects running in the same process as
the daemon thread. For example, the thread that runs the garbage
collector in Java is a daemon thread, In general, threads that run
application code are not daemon thread, and threads that run system
code are daemon threads
5. The run() method for a daemon thread is typically an infinite loop that
waits for a service request, perform the service, and wait for the next
service request. Daemon threads continue to execute until there are
no more threads for which services can be provided. At this time, the
daemon threads die and the java interpreter terminated its execution.
6. Daemon threads are typically independent threads within an application
that provide services for other objects within that same application
7. As result from the experiment, the daemon threads are equal in
priority of the conventional user threads, it is recommended to make
them in the lowest priority as the garbage collector thread in java.
就算有Daemon Thread仍在執行中...
程式一樣會被強制結束...
最簡單的例子就是garbage collector thread..
2. 如果某個 Thread 是 daemon thread,則它所產生的所有 threads 天生就
具有 daemon 的特性
3. A daemon thread should be used for some background task that
might provide a service to the applications. e.g. a Server thread
listening on a port for the clients' requests.
出自http://www.vyomworld.com/source/show.asp?ScriptID=176
以下出自http://web.syr.edu/~maaljlay/daemon.html
4. Any Java thread can be a daemon thread. Daemon threads are service
providers for other threads or objects running in the same process as
the daemon thread. For example, the thread that runs the garbage
collector in Java is a daemon thread, In general, threads that run
application code are not daemon thread, and threads that run system
code are daemon threads
5. The run() method for a daemon thread is typically an infinite loop that
waits for a service request, perform the service, and wait for the next
service request. Daemon threads continue to execute until there are
no more threads for which services can be provided. At this time, the
daemon threads die and the java interpreter terminated its execution.
6. Daemon threads are typically independent threads within an application
that provide services for other objects within that same application
7. As result from the experiment, the daemon threads are equal in
priority of the conventional user threads, it is recommended to make
them in the lowest priority as the garbage collector thread in java.
发表评论
-
字符编码笔记:ASCII,Unicode和UTF-8 (引用)
2009-01-07 10:39 875字符编码笔记:ASCII,Unicode和UTF-8 阮一峰 ... -
How to set up a simple LRU cache using LinkedHash
2008-11-03 18:05 1231How to set up a simple LRU cach ... -
Scalability?
2008-10-07 14:07 760严格上讲,scalability还没有正式定义, 甚至有人觉得 ... -
Cray Reminiscences
2007-08-29 15:54 744Kirk Pepperdine's attendence of ... -
lock-free
2007-06-18 22:06 9501. http://www.ibm.com/developer ... -
解决java.lang.OutOfMemoryError: PermGen space(转帖)
2007-06-05 18:07 3105解决方案就是:在启动服务器时加上指定PermGen区域的内存大 ... -
Performance...
2007-06-05 15:11 913« I used to work for... | Mai ... -
数据仓库
2007-04-18 10:38 1051... -
Expressions Transform
2007-04-13 11:13 1325Expressions, Conversion and Eva ... -
Java cleanup code
2007-04-03 12:20 1251Java shutdown hook guarantee th ... -
Java performance tunning
2007-04-03 11:37 882http://www.javaperformancetunin ... -
Running IE from command line
2007-04-03 10:58 1058Here's a simple way you can ru ... -
Unicode and UTF8
2007-04-03 10:27 871What is Unicode? Unicode provid ... -
How to know the main class of a jar file?
2007-04-02 15:18 965Easy. Here is an implementation ... -
The best chinese BAT tutorial(from www.boofee.net/bigfee/)
2007-03-27 11:58 1269如何创建批处理文件? 不要听了批处理文件就感到很神气 ... -
Basics - Binary search
2007-03-26 15:53 910java 代码 public class Bin ... -
MergeSort
2007-03-23 17:26 761MergeSort is a sample solutio ... -
Graph data structure
2007-03-23 12:04 8281. adjacent matrix good for bor ... -
Functional Programming For The Rest of Us
2007-03-23 10:39 900I like connect beautiful artic ... -
Functional Programming For The Rest of Us
2007-03-23 10:24 780I like connect beautiful artic ...
相关推荐
java中的daemon thread java中有两种类型的thread,user threads 和 daemon threads。 User threads是高优先级的thread,JVM将会等待所有的User Threads运行完毕之后才会结束运行。 daemon threads是低优先级的...
ThreadDaemon.class
ThreadDaemon.java
Daemon_Tools Daemon_Tools Daemon_Tools Daemon_Tools
虚拟光驱 daemon_tools_347cn_eric虚拟光驱 daemon_tools_347cn_eric虚拟光驱 daemon_tools_347cn_eric虚拟光驱 daemon_tools_347cn_eric虚拟光驱 daemon_tools_347cn_eric虚拟光驱 daemon_tools_347cn_eric虚拟光驱...
daemon 程序例子daemon 程序例子daemon 程序例子
daemon.rar 虚拟光驱,安装iso文件的好东西
daemontool4.11中文完美版daemontool4.11中文完美版daemontool4.11中文完美版
Daemon Tools v4.03 V4.03HE 汉化版,相信经常使用虚拟光驱的人都应该记得,这是当年极其经典的一个版本。 现在的虚拟光驱越做越大,功能也越来越多,最新的版本Daemon Tools 安装后要占用硬盘50多M,然尔对一般的...
daemon344光驱模拟器
Daemon Tools 3.46 简体中文版.rar 内有Daemon Tools 3.46 简体中文版.rar; daemon.log
虚拟光驱daemon
daemon341.exe 虚拟光驱
HA-daemon4301HA-daemon4301
虚拟光驱 daemon408-x86免费版本
DaemonTools
虚拟光驱软件DaemonTools 4.09
DAEMON Tools 4.30.1 最新汉化版HA-daemon4301-lite.EXE
Daemon Tools现在同时支持32位和64位操作系统。 一个不错的虚拟光驱工具,支持Win9x/win2k,支持ps,支持加密光盘,装完不需启动即可用。是一个先进的模拟备份并且合并保护盘的软件,可以备份SafeDisc保护的软件,...