Java???????????
???????????? ???????[ 2016/11/24 10:16:08 ] ????????Java ??? ????
???????????
????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??????д???????????????????С?}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11