O'Reilly logo
  • Mohammad Ahsan thinks this is interesting:

Figure 7.4 Thread synchronization using atomic operations

From

Cover of OCP Oracle® Certified Professional Java® SE 8 Programmer II

Note

errata: For Thread 2 the arrows must be reversed.