I’m using net beans for Java development. I’m working on a multi threading application and I want to easily identify code sections which are executed by more than one thread? Is there a easy way to do that?
For example, if some field of method of class ABC is executed by more than one thread?
This is something that can only be determined at runtime.
You can throw this method to the beginning you your method calls to determine the calling Thread.