调试Java同步 [英] debugging Java synchronization
本文介绍了调试Java同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Eclipse调试环境中是否有任何机制可以查看保持的同步锁状态和进程等待?
Is there any mechanism within the Eclipse debugging environment to see the state of synchronization locks held and processes waiting?
推荐答案
你可以在Eclipse的调试器中显示对象监视器的状态。您可以在此处找到简短明了的教程。对于每个线程,Eclipse可以向您显示线程拥有的监视器以及它正在等待的监视器。
You can show the state of object monitors in Eclipse's debugger. You can find a short, clear tutorial here. For each thread, Eclipse can show you the monitors the thread owns and those it is waiting for.
这篇关于调试Java同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文