Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

singleton,static,volatile in multithreaded

 
prakash Venugopal
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you explain singleton objects, static variable,volatile variable in multithreading environment?
 
Chris Hurst
Ranch Hand
Posts: 443
3
C++ Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you just want a general overview google is your friend all of this is covered in lots of blogs.

If you want the precise answer google the java memory model its all explained in depth there , if you have any questions as its not an easy read post them here and I'll answer them.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic