[問題] IllegalMonitorStateException 發生原因?
Hi,
我寫多執行緒程式遇到 IllegalMonitorStateException,
為了查明發生的原因,
我查了一下文件: http://tinyurl.com/2h93vm
上面的說明寫道:
Thrown to indicate that a thread has attempted to wait on an object's monitor
or to notify other threads waiting on an object's monitor without owning the
specified monitor.
請問「擁有該物件的 monitor」(owning the specified monitor) 是什麼意思?
謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.119.164.218
推
12/18 23:25, , 1F
12/18 23:25, 1F
→
12/19 14:31, , 2F
12/19 14:31, 2F
推
12/19 17:53, , 3F
12/19 17:53, 3F
→
12/19 20:55, , 4F
12/19 20:55, 4F
→
12/19 20:56, , 5F
12/19 20:56, 5F
→
12/19 23:27, , 6F
12/19 23:27, 6F