SlideShare a Scribd company logo
1 of 12
Basic concept of Process
Prepared By:
Nabinraj Dahal
Contents
• Process
• Features of process
• Process model
• Process termination
• Process state
• Process Control Block(PCB)
Process
• a program in execution; process execution must progress in
sequential fashion
• A process is an instance of a program in execution
• A process will need certain resources-such as CPU time, memory,
files, and I/O devices-to accomplish its task.
• These resources are allocated to the process either when it is created
or while it is executing
• A process is the unit of work in most systems
Process (cont….)
• Program is passive entity stored on disk (executable file), process is
active
• One program can be several processes
• Consider multiple users executing the same program
Features of process
• Dynamic
• Part of a program in execution
• A live entity, it can be created, executed and terminated
• It goes through different states wait running Ready etc
• Requires resources to be allocated by the OS
• One or more processes may be executing the same code.
Process model
Process termination
• Normal exit (voluntary)
• Error exit (voluntary)
• Fatal error (involuntary)
• Killed by another process (involuntary).
Process state
Process state(cont…)
• As a process executes, it changes state
• new: The process is being created
• running: Instructions are being executed
• waiting: The process is waiting for some event to occur
• ready: The process is waiting to be assigned to a processor
• terminated: The process has finished execution
Process Control Block(PCB)
• Identifier: A unique identifier associated with this process, to
distinguish it from all other processes
• State: If the process is currently executing, it is in the running state
• Priority: Priority level relative to other processes.
• Program counter: The address of the next instruction in the program
to be executed
• Memory pointers: Includes pointers to the program code and data
associated with this process, plus any memory blocks shared with
other processes.
Process Control Block(PCB)
• Context data: These are data that are present in registers in the
processor while the process is executing
• I/O status information: Includes outstanding I/O requests, I/O
devices (e.g., tape drives) assigned to this process, a list of files in use
by the process, and so on
• Accounting information: May include the amount of processor time
and clock time used, time limits, account numbers, and so on.
Thank you

More Related Content

What's hot

Free space managment46
Free space managment46Free space managment46
Free space managment46
myrajendra
 
Less09 managing undo data
Less09 managing undo dataLess09 managing undo data
Less09 managing undo data
Imran Ali
 

What's hot (20)

Page replacement
Page replacementPage replacement
Page replacement
 
Process management os concept
Process management os conceptProcess management os concept
Process management os concept
 
Os Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual MemoryOs Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual Memory
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture Notes
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Chapter 3 - Processes
Chapter 3 - ProcessesChapter 3 - Processes
Chapter 3 - Processes
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
Operating System-Memory Management
Operating System-Memory ManagementOperating System-Memory Management
Operating System-Memory Management
 
Process of operating system
Process of operating systemProcess of operating system
Process of operating system
 
File Management in Operating Systems
File Management in Operating SystemsFile Management in Operating Systems
File Management in Operating Systems
 
Kernel I/O subsystem
Kernel I/O subsystemKernel I/O subsystem
Kernel I/O subsystem
 
Critical section problem in operating system.
Critical section problem in operating system.Critical section problem in operating system.
Critical section problem in operating system.
 
Free space managment46
Free space managment46Free space managment46
Free space managment46
 
Structure of the page table
Structure of the page tableStructure of the page table
Structure of the page table
 
Operating system 37 demand paging
Operating system 37 demand pagingOperating system 37 demand paging
Operating system 37 demand paging
 
contiguous memory allocation.pptx
contiguous memory allocation.pptxcontiguous memory allocation.pptx
contiguous memory allocation.pptx
 
process control block
process control blockprocess control block
process control block
 
Chapter 7 - Deadlocks
Chapter 7 - DeadlocksChapter 7 - Deadlocks
Chapter 7 - Deadlocks
 
Less09 managing undo data
Less09 managing undo dataLess09 managing undo data
Less09 managing undo data
 
Mass Storage Structure
Mass Storage StructureMass Storage Structure
Mass Storage Structure
 

Viewers also liked

UTE Diversidad en el aula.
UTE Diversidad en el aula.UTE Diversidad en el aula.
UTE Diversidad en el aula.
jenprisll
 
PSS Solutions Capability Statement
PSS Solutions Capability StatementPSS Solutions Capability Statement
PSS Solutions Capability Statement
Steve Paterson DSM
 
Os structure
Os structureOs structure
Os structure
Mohd Arif
 

Viewers also liked (19)

Lecture 8 9 process_concept
Lecture 8 9 process_conceptLecture 8 9 process_concept
Lecture 8 9 process_concept
 
JPL Diploma Wft Pensioen 2015
JPL Diploma Wft Pensioen 2015JPL Diploma Wft Pensioen 2015
JPL Diploma Wft Pensioen 2015
 
MHP2013AnnualReport
MHP2013AnnualReportMHP2013AnnualReport
MHP2013AnnualReport
 
Música tradicional galega
Música tradicional galegaMúsica tradicional galega
Música tradicional galega
 
UTE Diversidad en el aula.
UTE Diversidad en el aula.UTE Diversidad en el aula.
UTE Diversidad en el aula.
 
Galanterie
GalanterieGalanterie
Galanterie
 
,,,,Ivy
,,,,Ivy,,,,Ivy
,,,,Ivy
 
Swimming pool pums
Swimming pool pumsSwimming pool pums
Swimming pool pums
 
ABP Y APP
ABP Y APPABP Y APP
ABP Y APP
 
PSS Solutions Capability Statement
PSS Solutions Capability StatementPSS Solutions Capability Statement
PSS Solutions Capability Statement
 
Clasi artropodos
Clasi artropodosClasi artropodos
Clasi artropodos
 
Trabalho de Convergência de Mídias - Jornal
Trabalho de Convergência de Mídias - JornalTrabalho de Convergência de Mídias - Jornal
Trabalho de Convergência de Mídias - Jornal
 
Mango Holidays Tours & Travels
Mango Holidays Tours & Travels Mango Holidays Tours & Travels
Mango Holidays Tours & Travels
 
Mfl flyer timetable final
Mfl flyer timetable finalMfl flyer timetable final
Mfl flyer timetable final
 
OS Chapter03
OS Chapter03OS Chapter03
OS Chapter03
 
Os structure
Os structureOs structure
Os structure
 
Operating system - Process and its concepts
Operating system - Process and its conceptsOperating system - Process and its concepts
Operating system - Process and its concepts
 
MFL 2015 Rachel Farrell
MFL 2015 Rachel FarrellMFL 2015 Rachel Farrell
MFL 2015 Rachel Farrell
 
Planificacion Urbana
Planificacion UrbanaPlanificacion Urbana
Planificacion Urbana
 

Similar to Basic concept of process

Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
chnrketan
 
Operating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptxOperating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptx
Amanuelmergia
 
Operating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2 (1).pptxOperating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2 (1).pptx
Amanuelmergia
 
OS_Unit II - Process Management_CATI.pptx
OS_Unit II - Process Management_CATI.pptxOS_Unit II - Process Management_CATI.pptx
OS_Unit II - Process Management_CATI.pptx
Gokhul2
 

Similar to Basic concept of process (20)

Process Management.pdf
Process Management.pdfProcess Management.pdf
Process Management.pdf
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
 
Operating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptxOperating Systems chap 2_updated2.pptx
Operating Systems chap 2_updated2.pptx
 
Lecture 2- Processes.pdf
Lecture 2- Processes.pdfLecture 2- Processes.pdf
Lecture 2- Processes.pdf
 
Operating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2 (1).pptxOperating Systems chap 2_updated2 (1).pptx
Operating Systems chap 2_updated2 (1).pptx
 
Lecture 2 process
Lecture 2   processLecture 2   process
Lecture 2 process
 
Lecture5
Lecture5Lecture5
Lecture5
 
Processes
ProcessesProcesses
Processes
 
Unit 2_OS process management
Unit 2_OS process management Unit 2_OS process management
Unit 2_OS process management
 
Processes, Threads.pptx
Processes, Threads.pptxProcesses, Threads.pptx
Processes, Threads.pptx
 
Processes, Threads.pptx
Processes, Threads.pptxProcesses, Threads.pptx
Processes, Threads.pptx
 
Processes
ProcessesProcesses
Processes
 
Processes in Operating System
Processes in Operating SystemProcesses in Operating System
Processes in Operating System
 
Chap3.ppt
Chap3.pptChap3.ppt
Chap3.ppt
 
Ch3 processes
Ch3   processesCh3   processes
Ch3 processes
 
UNIT I-Processes.pptx
UNIT I-Processes.pptxUNIT I-Processes.pptx
UNIT I-Processes.pptx
 
Process , Process states , Process Control Block in Operating Systems
Process , Process states , Process Control Block in Operating SystemsProcess , Process states , Process Control Block in Operating Systems
Process , Process states , Process Control Block in Operating Systems
 
opearating system notes mumbai university.pptx
opearating system notes mumbai university.pptxopearating system notes mumbai university.pptx
opearating system notes mumbai university.pptx
 
Process management in operating system | process states | PCB | FORK() | Zomb...
Process management in operating system | process states | PCB | FORK() | Zomb...Process management in operating system | process states | PCB | FORK() | Zomb...
Process management in operating system | process states | PCB | FORK() | Zomb...
 
OS_Unit II - Process Management_CATI.pptx
OS_Unit II - Process Management_CATI.pptxOS_Unit II - Process Management_CATI.pptx
OS_Unit II - Process Management_CATI.pptx
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 

Basic concept of process

  • 1. Basic concept of Process Prepared By: Nabinraj Dahal
  • 2. Contents • Process • Features of process • Process model • Process termination • Process state • Process Control Block(PCB)
  • 3. Process • a program in execution; process execution must progress in sequential fashion • A process is an instance of a program in execution • A process will need certain resources-such as CPU time, memory, files, and I/O devices-to accomplish its task. • These resources are allocated to the process either when it is created or while it is executing • A process is the unit of work in most systems
  • 4. Process (cont….) • Program is passive entity stored on disk (executable file), process is active • One program can be several processes • Consider multiple users executing the same program
  • 5. Features of process • Dynamic • Part of a program in execution • A live entity, it can be created, executed and terminated • It goes through different states wait running Ready etc • Requires resources to be allocated by the OS • One or more processes may be executing the same code.
  • 7. Process termination • Normal exit (voluntary) • Error exit (voluntary) • Fatal error (involuntary) • Killed by another process (involuntary).
  • 9. Process state(cont…) • As a process executes, it changes state • new: The process is being created • running: Instructions are being executed • waiting: The process is waiting for some event to occur • ready: The process is waiting to be assigned to a processor • terminated: The process has finished execution
  • 10. Process Control Block(PCB) • Identifier: A unique identifier associated with this process, to distinguish it from all other processes • State: If the process is currently executing, it is in the running state • Priority: Priority level relative to other processes. • Program counter: The address of the next instruction in the program to be executed • Memory pointers: Includes pointers to the program code and data associated with this process, plus any memory blocks shared with other processes.
  • 11. Process Control Block(PCB) • Context data: These are data that are present in registers in the processor while the process is executing • I/O status information: Includes outstanding I/O requests, I/O devices (e.g., tape drives) assigned to this process, a list of files in use by the process, and so on • Accounting information: May include the amount of processor time and clock time used, time limits, account numbers, and so on.