ALGORITHMICSGitHub ↗
← All tracks

Concurrency & Parallelism

Locks, actors, CSP, memory models.

18 topics

18/18

  • Concurrency 6 min
    Actors

    One owner per piece of state, reachable only by message — and what that buys you across a network.

  • Concurrency 6 min
    Amdahl's Law

    The part you cannot parallelise sets a ceiling — and it is lower than you think.

  • 7=78
    Concurrency 6 min
    Atomics

    Indivisible operations in hardware — and the loop that turns one into any update you like.

  • Concurrency 5 min
    Condition Variables

    Waiting for a state, not a lock — and why the check has to be a while loop.

  • Concurrency 6 min
    CSP and Channels

    Don't communicate by sharing memory; share memory by communicating.

  • Concurrency 6 min
    Deadlock

    Four conditions, all required — so breaking any one of them is a complete fix.

  • Concurrency 7 min
    Event Loops

    One thread, no blocking — and the queue ordering that decides what actually runs next.

  • Concurrency 5 min
    False Sharing

    Two threads with no shared variable, made slow by sharing 64 bytes.

  • Concurrency 6 min
    Happens-Before

    The relation that decides what one thread is allowed to see of another.

  • Concurrency 6 min
    Lock-Free Structures

    Progress guarantees, and the memory-reclamation problem that makes them hard.

  • abcacb
    Concurrency 6 min
    Memory Models

    What the hardware and the compiler are allowed to reorder — and why x86 lets bad code pass.

  • Concurrency 7 min
    Mutexes and Locks

    One holder at a time — and why the lost update happens on the line you thought was atomic.

  • Concurrency 6 min
    Read-Copy-Update

    Readers pay nothing at all — and the writer waits for them to leave before freeing anything.

  • Concurrency 5 min
    Semaphores

    A counter with a queue attached — and why it is not a mutex with extra steps.

  • Concurrency 6 min
    Structured Concurrency

    Tasks that cannot outlive the block that started them — goto, but for threads.

  • Concurrency 6 min
    Thread Pools

    Reuse the workers, queue the work — and the two questions that decide the size.

  • Concurrency 5 min
    Threads and Processes

    What is shared decides everything else — cost, safety, and how a crash spreads.

  • Concurrency 6 min
    Work Stealing

    Idle workers take from the busy — and the end of the deque they take from is the whole trick.

Coverage

18 of 18 topics