Module tokio::runtime::scheduler::multi_thread
source Β· Expand description
Multi-threaded runtime
Modules§
- counters π
- handle π
- idle πCoordinates idling workers
- overflow π
- park πParks the runtime.
- queue πRun-queue structures to support a work-stealing scheduler
- stats π
- trace_mock π
- worker πA scheduler is initialized with a fixed number of workers. Each worker is driven by a thread. Each worker has a βcoreβ which contains data such as the run queue and other state. When
block_in_place
is called, the workerβs βcoreβ is handed off to a new thread allowing the scheduler to continue to make progress while the originating thread blocks.
Structs§
- MultiThread πWork-stealing based thread pool for executing futures.