Concurrency terms
Doing many things at once — safely, correctly, efficiently
Writing code that does multiple things at once — correctly — is one of the hardest problems in software engineering. This category covers threads, processes, async/await, event loops, locks, race conditions, deadlocks, and the concurrency models used in modern languages and runtimes. Getting concurrency wrong is subtle; these terms help you get it right.
Compare-And-Swap (CAS)
CAS atomically compares a memory location to an expected value and only swaps it if equal — the foundation of lock-free algorithms and optimistic concurrency control.
2mo ago
concurrency advanced
Concurrency vs Parallelism
Concurrency is about dealing with multiple tasks at once (structuring); parallelism is actually executing multiple tasks simultaneously (hardware). You can have one without the other.
2mo ago
concurrency beginner
Compare-and-Swap (CAS) PHP 7.0+
An atomic CPU instruction that updates a memory location only if it contains an expected value — the foundation of lock-free data structures and optimistic concurrency control.
2mo ago
concurrency advanced
Coroutines — Cooperative Multitasking PHP 8.1+
Functions that explicitly yield control — enabling concurrent I/O without threads, where code decides when to pause rather than being preemptively interrupted.
2mo ago
concurrency advanced