Week 2 - Threads and process synchronization
Describe process, process state, and process control block. Process – A process is essentially a program that is currently running. Normally a program will become a process when an executable or a desktop shortcut is run which then loads into memory. A process will usually take on many other entities as it executes which include items such as the process stack which is temporary data, a data section which is global variables, and heap which is dynamically allocated memory. Process state – A process state is typically what is happening while a process is executing. While a process is running, it is changing state which are as follows: New − The process created. Running − Instructions are being executed. Waiting − Waiting for an event to occur (I/O operation or receiving a signal). Ready − Waiting to be assigned to a processor. Terminated − The process has completed execution. While many programs can be running at once, the process states can only be run once at a time and can...