1.resume from break point
IO integration
2.thread create
{
1.extends Thread,and override the run(){
}
thread.run() & thread .start(),they are not the same
}
3.2ways to use the thread
extend
implements the runnable interface --> we create a Class and implements the Runable interface and put it's obj to the
Thread t1 = new Thread(obj) first time to see it
4.anonymous class
...i saw them in Android :
new Thread(new Runable(){
@override
public run(){
}
);
5.daemon thread
if the main thread dead, the user thread won't be influenced
but the daemon thread will perish with the dead of Main Thread
gc thread: garbage collection thread
if we setDaemon(true) the user Thread will die when main thread is dead
6.join
if we use the join mehtod, the other thread won't go until the join-thread is finished