???????????
????1.??????????????????????????????????е???????????????????????????????????????????????CPU????????????л?
????2.?????????????????е????????????????????????????????CPU??????????????л???CPu?????????л?????????С????????????л???????????С??????λ
??????????Thread
????3.????????
??????1???????????
?????????Thread??????дrun????????????????main??????????main?????е???start????????????????????start???????????run????????????run?????????б??????????п?????????????????????????
??????2???????????
???????Runnable???????????????????Thread??????????Thread????start????
????4.????????????————??????
??????1?????????new??Thread????
??????2??????start???????start????run?????
??????3????????????????run????
??????4??????????run??????н???
??????5???ж?????????????CPU????е?????У?????ж????
????A.?????????????δ????CPU??棬?????ж????
???????????????setPriority??????????????10?????1??????5
????Thread.MAX_PRIORITY???????MIN__PRIORITY???????NORM_PRIORITY???????????????????CPU????????м?????????????ζ?????????????????????????????
????B.?????????????????????????????????????
????C.?????????Sleep????????????????????????????????
????D.??????????Object??wait ??notify??notifyAll??????notify?????????????????wait???????????
????E.????yield????????????????CPU???
????????????????????????????????????????????????????????????????????????????????????????????????????????????????У???????Ч??????????Ч?????????????????e?????
??????????????synchronized???????{????
???????????????????????????????????????????????????????п??????????
????????????????????????wait??notify??????д???????????????????С?}