npth
« Back to VersTracker
Description:
New GNU portable threads library
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: System utilities
Tags: threading library gnupg portability concurrency
Install: brew install npth
About:
Npth is a library implementing the GNU Pth API for portable preemptive threading. It uses POSIX threads or Windows fibers to provide an asynchronous threading model without requiring special kernel support. This allows multi-threaded applications to run portably across different operating systems.
Key Features:
  • Portable threading API compatible with GNU Pth
  • Preemptive scheduling of user-space threads
  • No kernel thread overhead for context switching
  • Compatible with POSIX threads and Windows
Use Cases:
  • Building multi-threaded applications that need portable thread behavior
  • Implementing asynchronous I/O operations in GNU software
  • Providing threading support in GnuPG and related cryptographic tools
Alternatives:
  • pthreads – Native POSIX threads requiring kernel support, heavier than Npth's user-space approach
  • boost::thread – C++ threading library requiring C++ runtime, not a direct C replacement
Version History
Detected Version Rev Change Commit
Sep 10, 2025 10:29am 0 VERSION_BUMP f986730c
Nov 12, 2024 9:43pm 0 VERSION_BUMP e9880f1f
Oct 26, 2024 9:34pm 0 VERSION_BUMP a31b217f