#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

#469 in Concurrency

Download history 2866/week @ 2024-08-06 1373/week @ 2024-08-13 1768/week @ 2024-08-20 4011/week @ 2024-08-27 2433/week @ 2024-09-03 1927/week @ 2024-09-10 2259/week @ 2024-09-17 2509/week @ 2024-09-24 1432/week @ 2024-10-01 1747/week @ 2024-10-08 2066/week @ 2024-10-15 4503/week @ 2024-10-22 478/week @ 2024-10-29 824/week @ 2024-11-05 2028/week @ 2024-11-12 664/week @ 2024-11-19

4,867 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