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 6 replies

Comment options

You must be logged in to vote
6 replies
@mox692
Comment options

mox692 Feb 24, 2025
Collaborator

@barafael
Comment options

@mox692
Comment options

mox692 Mar 3, 2025
Collaborator

@mox692
Comment options

mox692 Mar 3, 2025
Collaborator

@barafael
Comment options

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