View Single Post
  #1 (permalink)  
Old 07-18-2007, 05:54 AM
goldhouse goldhouse is offline
Senior Member
 
Join Date: Mar 2007
Posts: 136
goldhouse is on a distinguished road
volatile and synchornized
volatile make sure the the class variable is latest. synchorized make sure only one thread access it . Cant we replace the volatile with the synchornized ?
Reply With Quote
Sponsored Links