fork of gitlab.com/devnw/zig/thread-pool for zig 0.17
3 folders · 27 files

README.md

thread-pool Documentation #

Documentation for setup, API usage, testing, benchmarking, algorithms, and performance history.

Start Here #

Architecture & Algorithms #

  • Architecture — component layout + ownership rules
  • Design — rationale, queue design, memory model, shutdown
  • Algorithms — mermaid diagrams for each pipeline (submit flow, worker loop, descriptor lifecycle, DescCache, Chase-Lev deque, RingQueue SPMC, Vyukov MPMC, wake coalescing, lane routing, watchdog, shutdown)
  • Scheduler Decision — variant-picking rubric

Testing & Benchmarks #

  • Testing — validation matrix, TSan, fuzz, stress gate
  • Benchmarks — scenario matrix, measurement protocol, current snapshot, A/B loop reference
  • Runtime Comparison — Zig vs Tokio vs Go same-host snapshot + analysis
  • Performance Tracking — long-form per-phase delta history

Security #

Gap Analyses #

Performance Archive #

Chronological (most recent first):

Handoffs & Reviews #