In Tokio, the event loop can have multiple threads for running async tasks. When you start an async task via tokio::spawn, it goes into the current thread's "ready to run" queue[1], but if another worker thread is idle, it can "steal" tasks from other workers to make progress in parallel.
That way, you can have as many async tasks running in parallel as you have CPU cores to run them on; if one core is busy, another thread can take tasks away from it, and run them at the same time. This isn't worth the bother in Python, because of the GIL.
The thread pool used for spawn_blocking is awkwardly sized - it's meant for cases where the thread makes a blocking I/O call, and thus can't yield the thread back to the event loop. As a result, it's too big if you're trying to use it to run lots of CPU-bound work (since it has many more threads than you'll have CPUs), while still too small if you mix it with something like file I/O (which is normally blocking using the thread pool).
The recommendation if your workload has significant CPU-bound work to delegate to a thread pool is to use Rayon to provide the thread pool, and if needed, something like tokio_rayon to integrate Tokio and Rayon. Or, if you just need a thread to do work on, use std::thread to provide a thread of your own.
If the current thread's "ready to run" queue is already full, it can instead go into a global "ready to run" queue that's shared. ↩︎