Error

**Note: ** I do not think a TATAS lock has anything to do with CAS

= Test and Test and Set

  • more or less a TAS /CAS lock with indentation
  • Decreases time/thread compared to TAS
  • does not generalize to other applications bc Memory Ordering (JMM) leads to race conditions

Why is this preferrable?

The TAS operation causes bus contention. A simple read does not have this problem.

With Backoff:

Backoff Lock

Performance comparison (only example)