Concurrency and Parallel Algorithms
-
Happens-Before and Cross-Thread Visibility
Use program order and a synchronization edge to prove when a later read can rely on an earlier write.
-
Data Races and Atomicity of Compound Operations
Distinguish unordered conflicting accesses from lost updates within a sequence made of individually atomic operations.
-
Mutexes and Invariants Across Critical Sections
Choose one protected invariant and make every update preserve it when the lock passes between threads.
-
Condition Variables and Predicate Loops
Wait for a shared predicate without losing notifications or assuming that a wakeup reserves the desired state.
-
Counting Semaphores and Bounded Buffers
Account for free slots and available items separately and use a mutex for the buffer representation itself.
-
Compare-and-Swap and Conditional Atomic Updates
Tie an update to the value observed at a location and reuse the result of a failed attempt to reconsider the transition.
-
Acquire and Release Ordering
Use an atomic publication flag to carry an earlier result to a consumer under the language’s synchronization rules.
-
Sequential Consistency and Interleavings
Analyze a two-thread outcome by asking whether there is a global ordering that preserves each thread’s order.
-
Deadlock and Global Lock Ordering
Identify a wait cycle and prove why acquiring locks in a consistent strict order prevents that cycle.
-
Blocking, Lock-Free, and Wait-Free Progress
Compare progress guarantees under stalled threads and distinguish a system-wide completion argument from an individual step bound.
-
Linearization Points and Concurrent Histories
Place each completed operation at a logical instant within its interval and check that the result obeys a sequential specification.
-
ABA and Versioned Atomic State
Explain why observing the same representation twice can be insufficient and use an explicit version or lifetime guarantee where history matters.
-
Epoch-Based Memory Reclamation
Delay freeing retired objects until readers that could have observed them have passed a coordination boundary.
-
Hazard Pointers and Deferred Reclamation
Publish which object a reader intends to use and validate that the object is still reachable before accessing it.
-
Work, Span, and Parallel Speedup
Derive two lower bounds on parallel runtime and use their ratio to distinguish parallelism from processor count.
-
Parallel Prefix Scans by Tree Traversal
Compute every prefix with linear work and logarithmic span by separating subtree totals from incoming prefixes.
-
Local Task Queues and Work Stealing
Follow a worker that consumes local work and an idle worker that steals a pending task, then state the assumptions behind the speedup bound.
-
Parallel Reductions and Reproducible Order
Combine partial results along a tree while preserving the stated algebraic order and accounting for floating-point variation.
-
Load Balancing Under Skewed Task Sizes
Compare equal item counts with equal estimated work and account for the cost of changing partitions.
-
Little’s Law for Concurrent Work in Flight
Connect throughput, average occupancy and residence time for a stable system measured at one consistent boundary.