Intermediate Python
Q61 / 101

What is the difference between multiprocessing and threading in Python?

Correct! Well done.

Incorrect.

The correct answer is B) multiprocessing bypasses the GIL by using separate processes; threading shares memory but is limited by the GIL for CPU tasks

B

Correct Answer

multiprocessing bypasses the GIL by using separate processes; threading shares memory but is limited by the GIL for CPU tasks

Explanation

Multiple processes each have their own GIL, enabling true parallelism for CPU-bound work. Threads share memory but the GIL prevents CPU-bound parallelism in CPython.

Progress
61/101