File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Volatile versus Synchronized in Java 5 and Later

 
Natalie Kopple
Ranch Hand
Posts: 325
  • 0
  • 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
  • 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This link will help you .
 
Natalie Kopple
Ranch Hand
Posts: 325
  • 0
  • 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