https://github.com/tikv/yatp
Yet another thread pool in rust for both callbacks or futures.
https://github.com/tikv/yatp
Last synced: 2 months ago
JSON representation
Yet another thread pool in rust for both callbacks or futures.
- Host: GitHub
- URL: https://github.com/tikv/yatp
- Owner: tikv
- License: apache-2.0
- Created: 2019-11-20T08:24:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T05:37:48.000Z (9 months ago)
- Last Synced: 2025-03-29T15:09:00.966Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 127 KB
- Stars: 135
- Watchers: 16
- Forks: 31
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yatp
Yet another thread pool in Rust that is adaptive, responsive and generic._It is still a work in progress._
[](https://github.com/tikv/yatp/actions/workflows/test.yaml)
## Features
* **Adaptive**: Yatp adjusts the number of working threads automatically. Under
light workloads, unnecessary context switches are greatly reduced.* **Responsive**: Yatp supports different kinds of task queues with advanced
scheduling algorithms like [multi-level feedback queue][MLFQ].* **Generic**: Yatp is easily adapted to various tasks. Simple callbacks and
[Future] are built-in supported.[MLFQ]: https://en.wikipedia.org/wiki/Multilevel_feedback_queue
[Future]: https://doc.rust-lang.org/stable/std/future/trait.Future.html