← 返回卡片

原书出处

Async Rust Unleashing the Power of Fearless Concurrency (Maxwell Flitton, Caroline Morton)

07 Chapter 7. Customizing Tokio 运行时参数管理不同资源

First Edition · 核验版本的摘录快照 · 导入于 2026-11-25T07:07:54.321Z

number of threads processing async tasks. max_blocking_threads

The number of threads that can be allocated to blocking tasks. A blocking task does not allow switching because it has no await or requires long periods of CPU computation between await statements. Therefore, the thread is blocked for a fair amount of time processing the task. CPU-intensive tasks or synchronous tasks are usually referred to as blocking tasks. If we block all our threads,

no other tasks can be started. As

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Async Rust Unleashing the Power of Fearless Concurrency (Maxwell Flitton, Caroline Morton)/_epub-src/OEBPS/ch07.html#id48

EPUB SHA-256:109ff0224da54833b0d49c82502e850845274913fe34a7168dcf36a9c075b4e0