Simple counting protected by locking (``-'') is described in
Section ,
atomic counting with no memory barriers (``A'') is described in
Section
atomic counting with acquisition memory barrier (``AM'') is described in
Section
,
and
atomic counting with check and release memory barrier (``CAM'') is described in
Section
.