sanjey asok wrote:I have two threads and both want to share some information without any synchronization,
1)is it possible?
2) if possible,please explain How?
sorry to give less details
First, I would recommend getting very comfortable with using threads and synchronization first. Once you get really really comfortable, then you can start learning how to do optimistic locking algorithms.
Lock-less synchronization can get really hairy -- not for the faint of heart.... but... if you want to play around with it, take a look at the java util concurrent atomic classes.
Henry