多線程面試重點

一.線程狀態 1.start .. 2.stop .. 3.wait .. 4.notify/notifyAll .. 5.sleep .. 6.interrupt .. 7.join .. 8.yield .. 面試題: 1.sleep是否會釋放鎖 2.wait是否會釋放鎖,wait是否必須要要在synchronized的代碼塊中 3.notify是否會釋放鎖,何時釋放鎖 4.wait與noti
相關文章
相關標籤/搜索