The document discusses process management and describes processes, threads, process architecture, process states including new, ready, running, waiting and terminated. It also describes the components of a process control block including process state, program counter, CPU registers, CPU scheduling information, accounting information, memory management information and I/O status information.
The document discusses process management and describes processes, threads, process architecture, process states including new, ready, running, waiting and terminated. It also describes the components of a process control block including process state, program counter, CPU registers, CPU scheduling information, accounting information, memory management information and I/O status information.
Email Address: [email protected] Facebook Account: (7) Jundith Alterado | Facebook Description • A Process is a program in execution. It executes the task of the program. • Thread – unit/s of execution within a process. • Process Management – involves various tasks like creation, scheduling, termination of processes and a dead lock. OS is responsible for process scheduling and resource allocation. Process Architecture Stores temporary data like function parameters, return addresses, and local variables.
Allocates memory, which may
be processed during its run time.
Contains the variable/s.
Includes the current activity,
which is represented by the value of the program counter. Process State • Process State – current status of the process. Process State
• New – a process is newly created.
• Ready – waiting to be loaded into the primary memory, which is ready for execution. • Running – The process is in state of execution. • Waiting – waiting for an event or signal. (Ex. I/O completion) • Terminated – the process is finished. Process Control Block (PCB) Process Control Block (PCB) •Process state: A process can be new, ready, running, waiting, etc. •Program counter: The program counter lets you know the address of the next instruction, which should be executed for that process. •CPU registers: This component includes accumulators, index and general-purpose registers, and information of condition code. •CPU scheduling information: This component includes a process priority, pointers for scheduling queues, and various other scheduling parameters. Process Control Block (PCB) •Accounting and business information: It includes the amount of CPU and time utilities like real time used, job or process numbers, etc. •Memory-management information: This information includes the value of the base and limit registers, the page, or segment tables. This depends on the memory system, which is used by the operating system. •I/O status information: This block includes a list of open files, the list of I/O devices that are allocated to the process, etc.