Processes

Processes vs. Threads

ProcessesThreads

Created by the OS.

Are "mini-processes" inside a process.

Can have multiple threads.

Share memory so the reading and writing of variables are more efficient.

Larger overhead. Takes more time to open and close.

In Python, they pose no advantage because of GIL (Global Interpreter Lock).

Information sharing between processes is slow since they do not share memory.

Last updated