Thread
:
volatile and synchornized
View Single Post
#
1
(
permalink
)
07-18-2007, 05:54 AM
goldhouse
Senior Member
Join Date: Mar 2007
Posts: 136
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 ?
Sponsored Links
goldhouse
View Public Profile
Send a private message to goldhouse
Find all posts by goldhouse