Replies: 1 comment 3 replies
-
If you create multiple runtimes, then no work stealing happens between different runtimes. Additionally, CPU affinity can be set using |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've come across a scenario where I need to distribute tasks based on certain properties of the task to ensure that tasks with the same properties are distributed to the same worker queue and are not stolen by other workers.
The reason I needed this scenario was that I was creating tasks with the same properties that would cause lock competition, and I wanted to use the “current_thread” model to eliminate it and also get the advantage of multi_thread scheduling.
I have consulted the tokio tutorial and recently traced it against the source code, and found that there is no relevant API interface provided.
Can provide some assistance for me?
Beta Was this translation helpful? Give feedback.
All reactions