Skip to content

Relationship between tokio worker threads and threads in GDB #4159

Answered by Noah-Kennedy
cjfuller asked this question in Q&A
Discussion options

You must be logged in to vote

Some IO operations have to be run using a blocking threadpool due to blocking syscalls being the only options for said calls, so tokio has a blocking thread pool for this purpose. Try using the max_blocking_threads() method on the runtime builder, and see what that does. If this drops the thread count down, then you have your answer.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Darksonn
Comment options

@cjfuller
Comment options

Answer selected by cjfuller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants