コンカレントベース
1195 ワード
1、 ?
: , , 。
, 。
2、 ?
java 、 、 。
java ( ) ,
native
, , 。
3、
, , ( ),
, , , 。
4、 sleep() wait() ?
:sleep , wait 。
wait / ,sleep
wait , , notify notifyAll 。
sleep , 。 wait(long timeout)
5、 start() run() , run ?
new Thread, , start() , , cpu , 。start() ,
run() , 。
run() , run main 。 ,
: start , run thread ,