• Post Reply Bookmark Topic Watch Topic
  • New Topic

One more confusion!!  RSS feed

 
shesh anand
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How too prove that lock has been acquired on an object?...i mean codewise
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!