Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Volatile versus Synchronized in Java 5 and Later

 
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