OS202 - johanessteven19 - Updated Weekly throughout the semester!
Processes.
A process, in the context of computers, is the execution of programs. Any computer program is counted, from the simple spell-checking programs that run in the background, to the heaviest of programs, such as video games, internet browsers, etc. These processes are executed in the environment of an Operating System, and an OS is able to handle multiple processes at once.
Threads.
Threads are basic units of CPU utilization, each one consisting of a Program Counter, a stack, a set of registers, and a thread ID. In single-threaded applications, processes will be controlled by a single thread, meaning that there will only be one Program Counter, and only one set of instructions to be executed at any given moment. The opposite of that is the multi-threaded process, in which there could exist multiple threads in a single process, with their own Program Counters, stacks, and sets of registers. They however will still share a common code, data, and files.