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.
More on Processes, Signals & systemd
How are new processes created in Linux?IntermediateWhat is a zombie process, and how do you get rid of it?IntermediateWhat is an orphan process?BeginnerExplain the process states shown in ps (R, S, D, T, Z).IntermediateWhy can't you kill a process in D state?AdvancedWhat are signals? Name the important ones.Beginner