Skip to content

Commit aa175aa

Browse files
committed
update readme
1 parent a9620cb commit aa175aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ is sometimes called a "worker pool").
2323
* Currently, two `TaskQueues` implementations are available:
2424
* Channel: uses a [`crossbeam`](https://github.com/crossbeam-rs/crossbeam) channel to send tasks from the `Hive` to worker threads
2525
* When the `local-batch` feature is enabled, local batch queues are implemented using [`crossbeam_queue::ArrayQueue`](https://docs.rs/crossbeam/latest/crossbeam/queue/struct.ArrayQueue.html)
26-
* Workstealing:
26+
* Workstealing: A [`crossbeam_dequeue::Injector`](https://docs.rs/crossbeam-deque/latest/crossbeam_deque/struct.Injector.html) is used to submit tasks and serves as a global queue. Worker threads each have their own local queue and can take tasks either from the global queue or steal from other workers' local queues if their own queue is empty. This is a good choice for workloads that are either highly variable from task to task (in terms of processing time), or are fork-join in nature (i.e., tasks that submit sub-tasks).
2727
* The `Hive` creates a `Worker` instance for each thread in the pool.
2828
* Each thread in the pool continually:
2929
* Receives a task from an input queue,

0 commit comments

Comments
 (0)