Skip to content

Why is tokio multi threaded runtime so much slower than current thread? #7091

Answered by Darksonn
bennetthardwick asked this question in Q&A
Discussion options

You must be logged in to vote

The main thread is not a worker thread when using the multi-thread runtime. Wrap the body in tokio::spawn to actually execute the code on a worker thread.

Replies: 1 comment 2 replies

Comment options

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

@mox692
Comment options

mox692 Feb 24, 2025
Collaborator

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