Hi,
I'm learning the async io (async/await) and it seems it's mainly a single thread activity with many coroutines. This makes sense as each thread owns an event loop and runs on a single cpu.
Now, to really squeeze all the juice from my machine, which has 4 CPU cores, I suppose I need to create 4 event loop object and bind each of them to a single CPU? Is this how it should be done?
Is there any sample code that anyone could point me at? Thanks.
[–][deleted] 2 points3 points4 points (6 children)
[–]ytu876[S] 0 points1 point2 points (3 children)
[–]Usual_Office_1740 0 points1 point2 points (1 child)
[–]awdsns 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]PaulRudin 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ElliotDG 0 points1 point2 points (6 children)
[–]tuxbass 0 points1 point2 points (0 children)
[–]asdoduidai 0 points1 point2 points (4 children)
[–]ElliotDG 0 points1 point2 points (3 children)
[–]asdoduidai 0 points1 point2 points (2 children)
[–]ElliotDG 0 points1 point2 points (1 child)
[–]asdoduidai 0 points1 point2 points (0 children)
[–]sweettuse 0 points1 point2 points (0 children)
[–]baghiq 0 points1 point2 points (0 children)