Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Volatile versus Synchronized in Java 5 and Later  RSS feed

 
Natalie Kopple
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me to understand this:

In Java 5 and later version, when we would use the volatile keyword and why is it different than using synchronized?

Thank you.
 
Siddhesh Deodhar
Ranch Hand
Posts: 118
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This link will help you .
 
Natalie Kopple
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much for the link. Everything is well explained.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!