Operating systemsProcessManagementStates
Operating systemsProcessManagementStates
Objectives
List the components / functions of an OS Describe Process management Describe process states Describe process control block
Components of an OS
Processor management. Memory management. File management File Security User interface Device management Network management
Process Management
Ensure that each process and application receives enough of the processor's time to function properly. Deals with
Process States Process Descriptor Interrupts Deadlocks Scheduling
Process States
Process States
Ready - A "ready" or "waiting" process has been loaded into main memory and is awaiting execution on a CPU. There may be many "ready" processes at any one point of the systems execution - for example, in a one processor system, only one process can be executing at any one time, and all other "concurrently executing" processes will be waiting for execution.
Running - A process moves into the running state when it is chosen for execution. The process's instructions are executed by one of the CPUs (or cores) of the system. There is at most one running process per CPU or core. Blocked - A process that is blocked on some event (such as I/O operation completion or a signal). Eg: If a process (program) is instructed to open a selected file, the process is placed into the blocked state until the file is selected.