Intermediate
Python
Q87 / 101
What is the difference between Process and Thread in Python's multiprocessing vs threading?
Correct! Well done.
Incorrect.
The correct answer is B) Processes have separate memory space bypassing the GIL for CPU parallelism; threads share memory but are limited by the GIL
B
Correct Answer
Processes have separate memory space bypassing the GIL for CPU parallelism; threads share memory but are limited by the GIL
Explanation
multiprocessing.Process creates separate OS processes with independent GILs, enabling true CPU parallelism. Threading shares memory but only one thread runs Python bytecode at a time.
Progress
87/101