Docsity

Process Management: Understanding Processes, Threads, and Process States, Summaries of Advanced Operating Systems

Partial preview of the text

Download Process Management: Understanding Processes, Threads, and Process States and more Summaries Advanced Operating Systems in PDF only on Docsity!

Process Management System

Advance Operating system Lecture Two

Roshan Kr. Shah

College of Information and Technology and Engineering

September 7, 2023

Contents

(^1) Process Management

(^2) Process State

Process Management

Structure of Process and threads

Process Management

Process Section

Process in a memory contains following section Text section: contains Program codes,Program counter and the contents of the processor’s register Stack: Contains temporary data such as function parameter,return address and local variables. data section: contains global variables, static variables heap : it is memory that are dynamically allocated during process run time.

Process State

State of Process

Process State

Process Control Block

Each Process is represented in the operating system by a process control block(PCB) .It is also called a Task Control block. It serves as the repository for any information that may vary from process. PCB contains the information related to process such as: Process state The sate may be new,ready running,waiting and terminated Program counter: The counter has the address of the next instruction to be executed. CPU register: The register may vary in number and type depending upon computer architecture.s and other scheduling parameters. Memory- management information: this includes the base and limit register,page table,segment tables etc. Accounting information: includes the amount of CPU and real time used, time limits,account number, jobs or poresss number and so on. CPU -Scheduling information: Includes Priority,Pointer to scheduling,queue I/O status: Includes the list of I/O devices allocated to the process, a list of open files and so on

Process State

Thank you!