Processes and Threads

suggest change

Most programs are executed line by line, in a single thread of one process. Threads are additional flows of execution inside that same process. They are not extra processes, and threads alone do not run Python bytecode on several processors at once. Separate processes are what run work on more than one processor. This topic documents threads and processes in Python.

Global Interpreter Lock

Running in Multiple Threads

Running in Multiple Processes

Sharing State Between Threads

Sharing State Between Processes

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents