Threading, asyncio, multiprocessing

yxewanar report abuse

What is the difference between threading, asyncio and multiprocessing libraries? I heard about all of them in the context of optimization, but I wonder if they are not doing the same thing?


oksifoxy report abuse

Multiprocessing typically used when you need parallelization for different CPU cores. And threading and asyncio is for other forms of concurrency, asyncio is preferred when you have many I/O tasks. You need to understand the difference between concurrency and parallelism to figure this out. Look for more answers on this topic here and here

TaylorBoehm report abuse

Well this will take some time to figure out the concurrency between them as per blog reviews. It was such a huge thing to solve as it complexity increases as it goes on.

Add Answer

Need support?

Just drop us an email to ... Show more