Program vs Process vs Thread
This lesson discusses the differences between a program, process, and a thread. Also included is an psuedocode-example of a thread-unsafe program.
We'll cover the following...
Program vs Process vs Thread
Program
A program is a set of instructions and associated data that resides on the disk and is loaded by the operating system to perform a task. An executable file or a python script file are examples of programs. In order to run a program, the operating system's kernel is first asked to create a new process, which is an environment in which a program is executed.
Process
A process is a program in execution. A process is an ...