pth
« Back to VersTracker
Description:
GNU Portable THreads
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: System utilities
Tags: threading concurrency library portability gnu
Install: brew install pth
About:
GNU Pth is a library for portable multi-threading that provides a lightweight, non-preemptive scheduling mechanism. It enables event-driven multitasking on top of standard kernel threads without relying on OS-specific kernel support. This allows for efficient concurrency in applications where traditional threading models may be too heavy or unavailable.
Key Features:
  • Portable across numerous operating systems
  • Non-preemptive, priority-based scheduling
  • Minimal resource footprint compared to kernel threads
  • API compatible with POSIX threads (pthreads)
Use Cases:
  • Implementing concurrency in network servers and daemons
  • Porting threaded applications to systems with limited thread support
  • Building event-driven applications with cooperative multitasking
Alternatives:
  • pthreads – Standard OS-level threads; heavier but preemptive and native to Unix-like systems.
  • libcoro – Similar lightweight coroutines; Pth offers a broader API and scheduling model.
Version History
Detected Version Rev Change Commit
Sep 16, 2025 3:00pm 0 VERSION_BUMP 0938176e