Thread at wait() state , shared data (volatile? confused ;/ )
i have a thread that has just called notifyAll(); wait();
is it possible to find out on what method was the wait() executed?
e.g.
threads a,b,c
1 thread b has 2 synchronized methods.
2 thread a calls one of the two methods of b
3 thread c gets notified from thread b
4 thread c must be able to know what method did call the notify
constraints: i am trying to avoid having a silly variable in thread b ( eg String method = "method 1")
btw something irrelevant, don't you think is a bit strange creating a new thread to ask about threads?:D