I use a shared flag between threads. I am really worry about the performance of updating/getting a boolean flag, whether it is volatile or Atomic?
Tell me which one is best volatile or Atomic?
-----------------------
suresh
I use a shared flag between threads. I am really worry about the performance of updating/getting a boolean flag, whether it is volatile or Atomic?
Tell me which one is best volatile or Atomic?
-----------------------
suresh