SlideShare a Scribd company logo
4
Most read
Topic:
Processes
Page 1 out of 7
Process
• Program that is in execution.
• More than the program code
• Has several parts
• Text Section- Contains the code of the program.
• Stack- Contains Temporary data(Function parameters, local var, Return
address).
• Data Section- Contains Global var
• Heap- Contains dynamic memory allocated during process run time.
Page 2 out of 7
Process State
• New- The process is being created.
• Ready- All the resources are
available, process is waiting to be
assigned to a processor
• Running- The CPU is working on this
process's instructions.
• Waiting- The process is waiting for
some event to occur (such as an I/O
completion or reception of a signal).
• Terminated- The process has
finished execution.
Page 3 out of 7
Process or Task Control Block
Process is represented in the operating system by a
process control block. Contains many information of a
specific process including these:
• Process State - Ready, Running, waiting, etc.
• Process Number – Process number and parent process
ID.
• Program counter - Indicates the address of the next
instruction to be executed for this process.
• Registers - This state information must be saved when
an interrupt occurs, to allow the process to be
continued correctly in further process.
• List of open files - It saves device allocated, open file
tables, etc.
Page 4 out of 7
Process Scheduler & Context Switching
Operating system uses a program scheduler to schedules the processes
of computer system
• LTS - Selects process from job pool and loads them into memory.
• STC - Selects among the processes that are ready to execute.
Context Switching: Saves the current PCB and switch into next PCB. This
task is known as a context switch. Happens by interrupt or some higher
priority task.
Page 5 out of 7
Page 6 out of 7

More Related Content

PPT
The process states
PPTX
Process in operating system
PDF
Processes description and process control.
PPTX
Process concept
PPTX
Operating system 28 fundamental of scheduling
PPTX
PPTX
Cpu scheduling in operating System.
PPTX
Process Concepts (voice over ppt)
The process states
Process in operating system
Processes description and process control.
Process concept
Operating system 28 fundamental of scheduling
Cpu scheduling in operating System.
Process Concepts (voice over ppt)

What's hot (18)

PPTX
Process scheduling
PPTX
Process management1
PPT
Process management
PPTX
Process state in OS
PDF
PPTX
Process scheduling
PPTX
Round Robin Algorithm.pptx
PPT
Process concept
PPTX
The Functions of the Operating System
PPTX
Process life cycle
PPTX
Processes
DOCX
Process concept
PPTX
The Functions of the Operating System
PDF
Process scheduling
PDF
Operating Systems Part II-Process Scheduling, Synchronisation & Deadlock
PPTX
SCHEDULING ALGORITHMS
DOC
What is Database Backup? The 3 Important Recovery Techniques from transaction...
PDF
CSI-503 - 2. Processor Management
Process scheduling
Process management1
Process management
Process state in OS
Process scheduling
Round Robin Algorithm.pptx
Process concept
The Functions of the Operating System
Process life cycle
Processes
Process concept
The Functions of the Operating System
Process scheduling
Operating Systems Part II-Process Scheduling, Synchronisation & Deadlock
SCHEDULING ALGORITHMS
What is Database Backup? The 3 Important Recovery Techniques from transaction...
CSI-503 - 2. Processor Management
Ad

Similar to Processes in Operating System (20)

PDF
Unit 2 part 1(Process)
PPTX
Lecture 2 process
PPTX
Operating System Process Scheduling.pptx
PPTX
Operating Systems Process Management.pptx
PPTX
Process and thread Management Operating system
PDF
Lecture - 1_Process Management.pdf
PPTX
OS-Unit-2-Part-1.pptx
PDF
OS - Process Concepts
PPTX
Process management os concept
PDF
Lecture 2- Processes.pdf
PPTX
UNIT 2 OS.pptx Introduction of Operating System
PPTX
Operating Systems chap 2_updated2.pptx
PPTX
Operating Systems chap 2_updated2 (1).pptx
PPTX
operating system module 2 presentation notes
PDF
UNIT-2-Process-Management.pdf
PDF
UNIT - 3 PPT(Part- 1)_.pdf
PDF
OS-Process.pdf
PDF
Process Management.pdf
PPTX
operating system process management with example
PPTX
Unit 1 process management operating system.pptx
Unit 2 part 1(Process)
Lecture 2 process
Operating System Process Scheduling.pptx
Operating Systems Process Management.pptx
Process and thread Management Operating system
Lecture - 1_Process Management.pdf
OS-Unit-2-Part-1.pptx
OS - Process Concepts
Process management os concept
Lecture 2- Processes.pdf
UNIT 2 OS.pptx Introduction of Operating System
Operating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2 (1).pptx
operating system module 2 presentation notes
UNIT-2-Process-Management.pdf
UNIT - 3 PPT(Part- 1)_.pdf
OS-Process.pdf
Process Management.pdf
operating system process management with example
Unit 1 process management operating system.pptx
Ad

More from Arafat Hossan (20)

PPTX
Data Dictionary in System Analysis and Design
PPTX
Digital Data to Digital Signal Conversion
PPTX
Error and Exception Handling in PHP
PPTX
Bus Interface Unit(BIU) of 8086 Microprocessor
PPTX
Assembly language
PPTX
Web frameworks
PPTX
Cpu scheduling
PPTX
Semaphore
PPTX
Deadlock
PPTX
Data model
PPT
Mapping cardinalities
PPTX
Sql in dbms
PPTX
Relational algebra in DBMS
PPTX
Divisible rules
PPTX
All pair shortest path
PPT
Asymptotic notation
PPTX
Merge sort
PPTX
Job sequencing with deadline
PPTX
Multithreading in java
PPTX
Multithreading in java
Data Dictionary in System Analysis and Design
Digital Data to Digital Signal Conversion
Error and Exception Handling in PHP
Bus Interface Unit(BIU) of 8086 Microprocessor
Assembly language
Web frameworks
Cpu scheduling
Semaphore
Deadlock
Data model
Mapping cardinalities
Sql in dbms
Relational algebra in DBMS
Divisible rules
All pair shortest path
Asymptotic notation
Merge sort
Job sequencing with deadline
Multithreading in java
Multithreading in java

Recently uploaded (20)

PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Geodesy 1.pptx...............................................
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
UNIT 4 Total Quality Management .pptx
PPT
Project quality management in manufacturing
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Sustainable Sites - Green Building Construction
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Welding lecture in detail for understanding
PDF
Well-logging-methods_new................
PPTX
additive manufacturing of ss316l using mig welding
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
bas. eng. economics group 4 presentation 1.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
Geodesy 1.pptx...............................................
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
UNIT 4 Total Quality Management .pptx
Project quality management in manufacturing
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
R24 SURVEYING LAB MANUAL for civil enggi
Sustainable Sites - Green Building Construction
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Foundation to blockchain - A guide to Blockchain Tech
Operating System & Kernel Study Guide-1 - converted.pdf
Welding lecture in detail for understanding
Well-logging-methods_new................
additive manufacturing of ss316l using mig welding

Processes in Operating System

  • 2. Process • Program that is in execution. • More than the program code • Has several parts • Text Section- Contains the code of the program. • Stack- Contains Temporary data(Function parameters, local var, Return address). • Data Section- Contains Global var • Heap- Contains dynamic memory allocated during process run time. Page 2 out of 7
  • 3. Process State • New- The process is being created. • Ready- All the resources are available, process is waiting to be assigned to a processor • Running- The CPU is working on this process's instructions. • Waiting- The process is waiting for some event to occur (such as an I/O completion or reception of a signal). • Terminated- The process has finished execution. Page 3 out of 7
  • 4. Process or Task Control Block Process is represented in the operating system by a process control block. Contains many information of a specific process including these: • Process State - Ready, Running, waiting, etc. • Process Number – Process number and parent process ID. • Program counter - Indicates the address of the next instruction to be executed for this process. • Registers - This state information must be saved when an interrupt occurs, to allow the process to be continued correctly in further process. • List of open files - It saves device allocated, open file tables, etc. Page 4 out of 7
  • 5. Process Scheduler & Context Switching Operating system uses a program scheduler to schedules the processes of computer system • LTS - Selects process from job pool and loads them into memory. • STC - Selects among the processes that are ready to execute. Context Switching: Saves the current PCB and switch into next PCB. This task is known as a context switch. Happens by interrupt or some higher priority task. Page 5 out of 7
  • 6. Page 6 out of 7