3 ms·
I fail to see how asyncio should use multicore. Asynchronous programming uses a single thread... If you use CPU-bound tasks, using non-blocking I/O (which is w
by jaimebuelta 11y ago
I fail to see how asyncio should use multicore. Asynchronous programming uses a single thread...
If you use CPU-bound tasks, using non-blocking I/O (which is what asyncio is about) is not going to work. You can use multiple processes (maybe from concurrent.futures[1]) to help that case.
[1] https://docs.python.org/3.5/library/concurrent.futures.html#module-concurrent.futures https://docs.python.org/3.5/library/concurrent.futures.html#...