Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

query about synchronized

 
abin joy
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


In this piece of code what does the "synchronized(this)" do?
[ August 11, 2008: Message edited by: Rob Prime ]
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"abin abin joy",

Please read your private messages regarding an important announcement.

Thank you,

Rob

Also, UseRealWords. When I read your subject I had no idea what "abt" meant. You should also UseCodeTags. I changed your post for you (also to fix the subject), and look how much better the code part looks.

As for your question, check out the JLS.

Finally, moving to the beginner's forum.
[ August 11, 2008: Message edited by: Rob Prime ]
 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this Link . That may be useful for you.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic