Threads vs. Processes on Linux
Learn how to create multithreaded processes in Python.
In this lesson, we’ll create multithreaded processes with a focus on Linux, as Python is closely tied with Linux development. The theory is the same for Windows as well, although the underlying implementation differs.
Processes
Any program that runs in Linux is a process. Each process has its memory, stack, and access to shared peripherals. As far as each process is concerned, it has the whole computer to itself. Additionally, if you’ve done any Windows programming (programming the Microsoft Windows API), you’ll find some differences in terminology. Microsoft has a few special terms it uses for its processes.
So how do multiple processes run at the same time? That’s the job of the operating system. It ensures that each process can only access its memory, run on the CPU, ...
Get hands-on with 1400+ tech skills courses.