25. OK So What The Hell Will Work ? volatile (but only after JDK 1.5) Volatile fields are special fields which are used to communicate state changes between threads.
26. Semantics of volatile Thread T1 Thread 2 Processor P1 Processor P2 cache cache MAIN MEMORY Flush Invalidate