看板 [ java ]
討論串[問題] 利用Thread呼叫JNotify無反應
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓3(3推 0噓 0→)留言3則,0人參與, 最新作者sbrhsieh (十年~)時間12年前 (2013/03/29 21:31), 編輯資訊
0
0
0
內容預覽:
這段碼並沒有符合你描述的做法,假如 JNotify.addWatch 不是 blocking 操作,. 那麼那個 while loop 一下子就跳離了(由於 thread 原本就不是在 interrupted. 狀態)。. 我想你的意思應該是. public void run() {. int wa
(還有481個字)

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者rudolf1238 (Yo)時間12年前 (2013/03/24 16:42), 編輯資訊
0
0
1
內容預覽:
各位版友好,我目前想用JNotify套件來監聽文件夾檔案更動,. 官方網站在此http://jnotify.sourceforge.net/. 原本由main方法呼叫JNotify.addWatch(strDir,intMask,booWatchSubtree,Listener);. 但由於特定因素
(還有817個字)
首頁
上一頁
1
下一頁
尾頁