JAVA interrupt、interrupted和isInterrupted的區別

2017年03月11日 11:24:44 閱讀數:1906 提前總結: interrupt() 向當前調用者線程發出中斷信號 isinterrupted() 查看當前中斷信號是true還是false interrupted() 是靜態方法,查看當前中斷信號是true還是false並且清除中斷信號,顧名思義interrupted爲已經處理中斷信號。 注:interrupt()方法發出的中斷信號只能被
相關文章
相關標籤/搜索