# npth

> non-preemptive portable threads library

**Wikidata**: [Q100725722](https://www.wikidata.org/wiki/Q100725722)  
**Source**: https://4ort.xyz/entity/npth

## Summary
npth is a free software library that provides non-preemptive portable threads functionality, designed to be compatible with the GNU Portable Threads (GPT) API. It is licensed under the GNU Lesser General Public License, version 2.1, and is maintained as part of the GNU Privacy Guard (GPG) project.

## Key Facts
- **License**: GNU Lesser General Public License, version 2.1
- **Latest version**: 1.8 (released on 2024-11-12)
- **Website**: [https://www.gnupg.org/software/npth/](https://www.gnupg.org/software/npth/)
- **Inspired by**: GNU Portable Threads (GPT)
- **Repository**: [https://dev.gnupg.org/source/npth.git](https://dev.gnupg.org/source/npth.git)
- **Package availability**: Fedora, Gentoo, FreeBSD, OpenBSD, NetBSD, Arch Linux, Homebrew, Guix
- **Copyright status**: Copyrighted
- **Aliases**: New GNU Portable Threads Library

## FAQs
### Q: What is npth used for?
A: npth is a library that provides non-preemptive portable threads functionality, primarily used to support threading in applications like the GNU Privacy Guard (GPG).

### Q: Is npth free software?
A: Yes, npth is free software distributed under the GNU Lesser General Public License, version 2.1, allowing users to freely run, study, change, and distribute it.

### Q: What versions of npth are available?
A: The latest version is 1.8 (released on 2024-11-12), with previous versions including 1.7 (2024-02-23) and 1.6 (2018-07-16).

### Q: Where can I find the source code for npth?
A: The source code is available in the Git repository at [https://dev.gnupg.org/source/npth.git](https://dev.gnupg.org/source/npth.git).

### Q: What operating systems support npth?
A: npth is supported on Fedora, Gentoo, FreeBSD, OpenBSD, NetBSD, Arch Linux, Homebrew, and Guix.

## Why It Matters
npth plays a crucial role in providing threading support for applications that rely on the GNU Portable Threads (GPT) API. Its non-preemptive design ensures compatibility and stability across different platforms. As part of the GNU Privacy Guard (GPG) project, npth contributes to the security infrastructure by enabling threaded operations in cryptographic applications. Its availability across multiple package managers and operating systems demonstrates its widespread adoption and reliability. By adhering to the GNU Lesser General Public License, npth ensures that it remains accessible and modifiable for developers and users alike.

## Notable For
- **Portability**: Designed to be compatible with the GNU Portable Threads (GPT) API, ensuring broad compatibility across different systems.
- **Threading Support**: Provides non-preemptive portable threads functionality, essential for applications requiring threaded operations.
- **Integration**: Maintained as part of the GNU Privacy Guard (GPG) project, enhancing the security and performance of cryptographic applications.
- **License**: Distributed under the GNU Lesser General Public License, version 2.1, promoting free and open-source software principles.
- **Package Availability**: Available across multiple package managers and operating systems, including Fedora, Gentoo, FreeBSD, OpenBSD, NetBSD, Arch Linux, Homebrew, and Guix.

## Body
### Overview
npth is a non-preemptive portable threads library that adheres to the GNU Portable Threads (GPT) API. It is licensed under the GNU Lesser General Public License, version 2.1, and is maintained as part of the GNU Privacy Guard (GPG) project.

### Versions and Releases
- **Version 1.6**: Released on 2018-07-16.
- **Version 1.7**: Released on 2024-02-23.
- **Version 1.8**: Released on 2024-11-12 (latest version).

### Availability
npth is available as a package for Fedora, Gentoo, FreeBSD, OpenBSD, NetBSD, Arch Linux, Homebrew, and Guix. The source code is hosted in a Git repository at [https://dev.gnupg.org/source/npth.git](https://dev.gnupg.org/source/npth.git).

### License and Copyright
npth is distributed under the GNU Lesser General Public License, version 2.1, and is copyrighted.

### Inspiration
npth was inspired by GNU Portable Threads (GPT), ensuring compatibility with existing threaded applications.

### Usage
npth is primarily used to support threading in applications like the GNU Privacy Guard (GPG), providing non-preemptive portable threads functionality.

## References

1. [Source](https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git;a=tag;h=f398b6aa19b5811eab399a9c5481420c90dee509)
2. [Source](https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git;a=blob;f=NEWS;hb=npth-1.6)
3. [Noteworthy changes in version 1.7](https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git;a=blob;f=NEWS;hb=npth-1.7)
4. [Source](https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git;a=blob;f=NEWS;hb=npth-1.8)
5. [Source](https://packages.gentoo.org/packages/dev-libs/npth)