Originally posted by shesh anand:
How too prove that lock has been acquired on an object?...i mean codewise
I'm not clear on what your requirements are. If you output something from synchronized code, this would demonstrate that the lock has been acquired and the code is executing. What exactly are you looking for?