java基础
heyoum
这个作者很懒,什么都没留下…
展开
-
Why Are Thread.stop, Thread.suspend, Thread.resume and Runtime.runFinalizersOnExit Deprecated?
http://download.oracle.com/javase/1.4.2/docs/guide/misc/threadPrimitiveDeprecation.html Why is Thread.stop deprecated?Because it i转载 2011-07-06 10:43:56 · 554 阅读 · 0 评论 -
Difference between Daemon and Non Daemon thread?
In java we have two type of Threads :Daemon Thread and User Threads. Generally all threads created by programmer are user thread (转载 2011-07-06 10:05:59 · 441 阅读 · 0 评论 -
Thread中的run和start方法
1、 认识Thread和Runnable Java中实现多线程有两种途径:继承Thread类或者实现Runnable接口。Runnable是接口,建议用接口的方式生成线程,因为接口可以实现多继承,况且Runnable只有一个run方法,很适合继承。在使用Thread的时候只需继承转载 2011-07-21 11:45:03 · 1470 阅读 · 0 评论