#thread-pool #worker-thread #thread #pool #parallelism #threading

blocking-threadpool

A thread pool for running a number of jobs on a fixed set of worker threads

2 stable releases

1.0.1 Nov 15, 2023
1.0.0 Nov 12, 2023

#387 in Concurrency

Download history 1363/week @ 2024-07-22 2508/week @ 2024-07-29 3188/week @ 2024-08-05 1558/week @ 2024-08-12 946/week @ 2024-08-19 4808/week @ 2024-08-26 2328/week @ 2024-09-02 2047/week @ 2024-09-09 1815/week @ 2024-09-16 3050/week @ 2024-09-23 1131/week @ 2024-09-30 2004/week @ 2024-10-07 1858/week @ 2024-10-14 3889/week @ 2024-10-21 1327/week @ 2024-10-28 845/week @ 2024-11-04

7,937 downloads per month
Used in 4 crates (3 directly)

MIT/Apache

48KB
754 lines

blocking-threadpool

A thread pool for running a number of jobs on a fixed set of worker threads, with optional back-pressure for job submission.

This project is a fork of rust-threadpool with back-pressure support added and minor maintenance improvements.

doc.rs

Usage

Add this to your Cargo.toml:

[dependencies]
blocking-threadpool = "1.0"

Memory performance

Rust 1.32.0 has switched from jemalloc to the operating systems allocator. While this enables more plattforms for some workloads this means some performance loss.

To regain the performance consider enabling the jemallocator crate.

Similar libraries

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~425KB