What is the difference between threading and multiprocessing?
The Global Interpreter Lock and concurrency
Audio flashcard · 0:17Nortren·
What is the difference between threading and multiprocessing?
0:17
Threading uses operating system threads inside one process. Threads share memory but in standard CPython are limited by the GIL. Multiprocessing uses separate processes, each with its own Python interpreter and memory. Processes can run truly in parallel on multiple cores, at the cost of more memory and slower data exchange.
docs.python.org