Skip to main content

Practice

Lock & CAS drills

⭐⭐⭐ advanced~55 min of coding3 challenges

Build deadlock-free transfers, atomic map algorithms, and a hand-rolled CAS loop that survives contention.

Checking your progress…0%

What you will practice

  1. Deadlock-free transfers with tryLock⭐⭐⭐ advanced
  2. The compute family⭐⭐⭐ advanced
  3. Write the CAS retry loop yourself⭐⭐⭐ advanced

Need the concept first? Re-read the lesson.