Concurrency: Techniques Corpus
7 documents filed under concurrency. Every one of
them is retrievable by agents through rag_context.
All categories.
- Actor Model: Deep Theory & Practice
Comprehensive coverage of the Actor Model computational paradigm, from Hewitt's axioms through Erlang/OTP, Akka, and Orleans.
- Concurrency & Time
Standards for how services use time, parallelism, and scheduling so reducers, FSMs, and reliability patterns stay predictable under load.
- Memory Models: Hardware-Software Concurrency Interface
Formal specifications of how concurrent reads and writes to shared memory interact, defining legal reorderings and visibility guarantees.
- POSIX Child-Process Supervision in Rust: Reaping, Process Groups, PID-Reuse Witnesses, Tree Kills and Detachment
Primary-source and experiment-backed guidance for supervising child processes from Rust on Linux and macOS: std never kills or reaps a dropped Child and tokio's kill_on_drop kills one pid and reaps only while the runtime runs; a pid stays reserved until its owner reaps it, so a direct parent can signal safely only before wait; process groups (process_group(0), kill(-pgid)) stop a cooperative tree but any descendant can leave with setsid; cgroup.kill is the only reliable tree kill and macOS has no equivalent; a stored pid needs a witness (pidfd on Linux, pid plus start time elsewhere); PR_SET_PDEATHSIG follows the spawning thread and one generation, and the portable alternative is a lifeline pipe; detach by spawning a new session, never by forking a threaded process. Includes a compiled group-terminate routine and fifteen experiments.
Researched 2026-11-23 · 79 sources
- Rust Async Cancellation and Graceful Shutdown Patterns
How async cancellation works in Rust (cooperative drop-at-await), what cancellation safety means, and the Tokio patterns for graceful shutdown — CancellationToken, TaskTracker/JoinSet, bounded drain, and the futurelock hazard.
Researched 2026-07-18 · 9 sources
- Rust: Threading and Concurrency Deep Dive
A comprehensive guide to Rust's concurrency primitives, focused on atomics versus synchronization primitives with performance analysis.
- Unix-Socket IPC and Singleton Local Daemons: Lifetime Locks, Stale Sockets, Peer Credentials, Socket Activation
Primary-source and experiment-backed guidance for local daemons that serve a CLI over a Unix domain socket: an exclusive flock held for the daemon's life is the singleton and the socket is derived state; bind fails on any existing path and the kernel never removes it; connect-refused means stale only when you hold the lock (a full backlog also refuses on macOS); the 0700 directory is the portable access control while socket modes are enforced on Linux and macOS but not by POSIX; peer uid/gid from SO_PEERCRED, getpeereid or LOCAL_PEERCRED is reliable and the pid is not; JSONL with a hard line limit; SCM_RIGHTS rules; systemd and launchd socket activation with worked unit files; two CVEs from over-permissive sockets.
Researched 2026-11-02 · 79 sources