This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

query about synchronized  RSS feed

 
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
Posts: 20893
81
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!