• Post Reply Bookmark Topic Watch Topic
  • New Topic

abt variable synchronization  RSS feed

 
sm mishra
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A member variable that is an object reference, can we synchronize this member variable,i mnot clear about this
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can do that with a synchronized block,but volatile makes much more sense
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!