Interview Prep/Linux/Processes, Signals & systemd

What is the difference between a program, a process and a thread?

BeginnerConceptProcesses, Signals & systemd
Answer

A program is an executable file on disk. A process is a running instance with its own address space, PID, file descriptors and credentials. A thread is an execution context inside a process that shares its memory and file descriptors. In Linux both are "tasks" created by clone(); threads just share more. ps -eLf or top -H shows threads.

All Linux questions Roadmap: Linux

More on Processes, Signals & systemd