Concept

Concurrency and Paralellism in Python

Concurrency and parallelism in Python are mainly handled by 2 built-in modules: Threading and multiprocessing. Threading allows Python to make use of multiple threads in order to speed up programs that are I/O dependent. Alternatively, multiprocessing allows Python to use multiple processes to speed up CPU bound scenarios.

Additionally, web servers, databases, and distributed networks also make use of the asyncio module. Asyncio allows for concurrent code so that the aforementioned systems don't have wait on execution

0

1

Updated 2021-04-30

Tags

Python Programming Language

Data Science

Learn After