SlideShare a Scribd company logo
1 of 12
Operating System
Chapter 3: Process
Process
A process is a program in execution.
A process is more than the program
code, which is sometimes known as the
text section. It also includes the
current activity, as represented by
the value of the program counter and
the contents of the processor's
registers.
Process states
As a process executes, it changes state. The state of a process is defined
in part by the current activity of that process. Each process may be in one
of the following states:
Instructions are being
executed.
The process is waiting
to be assigned to a
processor.
The process is being
created.
The process is waiting
for some event to occur
(such as an I/O
completion or reception
of a signal)
The process has finished
execution.
01
New
02
Running
03
Waiting
04
Ready
05
Terminated
Process states
These names are arbitrary, and they vary across operating systems. The states
that they represent are found on all systems, however. Certain operating
systems also more finely delineate process states. It is important to realize
that only one process can be running on any processor at any instant. Many
processes may be ready and limiting, however. The state diagram corresponding
to these states is presented in bellow figure:
Ready Run TerminatedNew
Wait/Block
SuspendWait
Suspend Ready
Schedule/Dispatch
Priority/Time quantum
Completion
I/O completion
Suspend
Resume
I/O completed but still in suspend
Resume
Suspend
Process control block (PCB)
Each process is represented in the operating system by a process control
block (PCB)—also called a task control block. A PCB is shown in bellow
figure:
Information of PCB
PCB contains many pieces of information associated with a specific process,
including these:
The state may be new, ready, running, waiting, halted, and so on.
The counter indicates the address of the next instruction to
be executed for this process.
The registers vary in number and type, depending on
the computer architecture.They include accumulators,
index registers, stack pointers, and general-purpose
registers, plus any condition-code information. .
This information includes a process priority,
pointers to scheduling queues, and any other
scheduling parameters.
This information may include such information as the
value of the base and limit registers, the page tables,
or the segment tables, depending on the memory
system used by the operating system.
This information includes the amount of CPU and
real time used, time limits, account members, job
or process numbers, and so on.
This information includes the list of I/O devices allocated to the process,
a list of open files, and so on. In brief, the PCB simply serves as the
repository for any information that may vary from process to process.
Process state01
Program counter02
CPU registers03
CPU-scheduling
information
04
Memory-management
information
05
Accounting information06
I/O status
information
07
PCB
PCB
Highlights
Process scheduling queue
The OS maintains all PCBs in Process Scheduling Queues. The OS maintains a separate
queue for each of the process states and PCBs of all processes in the same execution
state are placed in the same queue.
The Operating System maintains the following important process scheduling queues −
Process scheduling
Partially executed
swapped-out processes
Ready queue CPU
I/O I/O queue I/O queue
Time slice expired
Child
executes
Fork a child
Interrupt
occurs
Wait for an
interrupt
Swap in Swap out
end
Classification of scheduling or scheduler
1
2
3
Medium-term
scheduler
The key idea behind a medium-term scheduler is that
sometimes it can be advantageous to remove
processes from memory (and from active contention
for the CPU) and thus reduce the degree of
multiprogramming.
Long-term
scheduler
The long-term scheduler, or job scheduler, selects
processes from this pool and loads them into
memory for execution.
Short-term
scheduler
The short-term scheduler, or CPU scheduler,
selects from among the processes that are
ready to execute and allocates the CPU to
one of them.
Kinds of process
I/O-bound processYourText Here
An I/O-bound process is one
that spends more of its time
doing I/O than it spends doing
computations.
A CPU-bound process, in
contrast, generates I/O
requests infrequently, using
more of its time doing
computations.
2
1
CPU-bound process
Process states
Switching the CPU to another process requires performing a state save of the
current process and a state restore of a different process. This task is known
as a context switch.
Context-switch times are highly dependent on hardware support. A context switch
here simply requires changing the pointer to the current register set.
process Po operating system process P1
Save into PCBo
Save into PCB1
Save into PCB1
Save into PCBo
.
.
.
.
.
.
Interrupt or system call
Interrupt or system call
idle
idle
idle executing
executing
executing
Prepared by:
Ankon Gopal Banik
Front End Developer | WWF
(Web With Friends)
m: +8801771981989
p: 027730402
e: agbanik2081@outlook.com
75-B, Kyetpara, Dhamrai,
Dhaka, Bangladesh
www.wwfriends.org

More Related Content

What's hot

Fcfs scheduling
Fcfs schedulingFcfs scheduling
Fcfs schedulingmyrajendra
 
Multi processor scheduling
Multi  processor schedulingMulti  processor scheduling
Multi processor schedulingShashank Kapoor
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architectureKumar
 
Multithreading
MultithreadingMultithreading
MultithreadingA B Shinde
 
Embedded os
Embedded osEmbedded os
Embedded oschian417
 
Process management in os
Process management in osProcess management in os
Process management in osSumant Diwakar
 
Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance SHIKHA GAUTAM
 
Memory management
Memory managementMemory management
Memory managementcpjcollege
 
Design issues for the layers
Design issues for the layersDesign issues for the layers
Design issues for the layersjayaprakash
 
Process Synchronization in operating system | mutex | semaphore | race condition
Process Synchronization in operating system | mutex | semaphore | race conditionProcess Synchronization in operating system | mutex | semaphore | race condition
Process Synchronization in operating system | mutex | semaphore | race conditionShivam Mitra
 
System call (Fork +Exec)
System call (Fork +Exec)System call (Fork +Exec)
System call (Fork +Exec)Amit Ghosh
 
Operating system 08 time sharing and multitasking operating system
Operating system 08 time sharing and multitasking operating systemOperating system 08 time sharing and multitasking operating system
Operating system 08 time sharing and multitasking operating systemVaibhav Khanna
 

What's hot (20)

Fcfs scheduling
Fcfs schedulingFcfs scheduling
Fcfs scheduling
 
Multi processor scheduling
Multi  processor schedulingMulti  processor scheduling
Multi processor scheduling
 
Priority scheduling algorithms
Priority scheduling algorithmsPriority scheduling algorithms
Priority scheduling algorithms
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
Interrupts
InterruptsInterrupts
Interrupts
 
process creation OS
process creation OSprocess creation OS
process creation OS
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Step to program in tasm
Step to program in tasmStep to program in tasm
Step to program in tasm
 
Multithreading
MultithreadingMultithreading
Multithreading
 
Embedded os
Embedded osEmbedded os
Embedded os
 
Process management in os
Process management in osProcess management in os
Process management in os
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance
 
Interrupts
InterruptsInterrupts
Interrupts
 
Memory management
Memory managementMemory management
Memory management
 
Design issues for the layers
Design issues for the layersDesign issues for the layers
Design issues for the layers
 
Process Synchronization in operating system | mutex | semaphore | race condition
Process Synchronization in operating system | mutex | semaphore | race conditionProcess Synchronization in operating system | mutex | semaphore | race condition
Process Synchronization in operating system | mutex | semaphore | race condition
 
System call (Fork +Exec)
System call (Fork +Exec)System call (Fork +Exec)
System call (Fork +Exec)
 
Operating system 08 time sharing and multitasking operating system
Operating system 08 time sharing and multitasking operating systemOperating system 08 time sharing and multitasking operating system
Operating system 08 time sharing and multitasking operating system
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 

Similar to Operating system || Chapter 3: Process

Operating System-Concepts of Process
Operating System-Concepts of ProcessOperating System-Concepts of Process
Operating System-Concepts of ProcessShipra Swati
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process ConceptsMukesh Chinta
 
Operating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - EngineeringOperating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - EngineeringYogesh Santhan
 
Operating system
Operating systemOperating system
Operating systemMark Muhama
 
CSI-503 - 3. Process Scheduling
CSI-503 - 3. Process SchedulingCSI-503 - 3. Process Scheduling
CSI-503 - 3. Process Schedulingghayour abbas
 
Unit 2 part 1(Process)
Unit 2 part 1(Process)Unit 2 part 1(Process)
Unit 2 part 1(Process)WajeehaBaig
 
Operating system - Process and its concepts
Operating system - Process and its conceptsOperating system - Process and its concepts
Operating system - Process and its conceptsKaran Thakkar
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process managementArnav Chowdhury
 
Processes description and process control.
Processes description and process control.Processes description and process control.
Processes description and process control.Ahsan Rahim
 
Processes in Operating System
Processes in Operating SystemProcesses in Operating System
Processes in Operating SystemArafat Hossan
 

Similar to Operating system || Chapter 3: Process (20)

Operating System-Concepts of Process
Operating System-Concepts of ProcessOperating System-Concepts of Process
Operating System-Concepts of Process
 
UNIT - 3 PPT(Part- 1)_.pdf
UNIT - 3 PPT(Part- 1)_.pdfUNIT - 3 PPT(Part- 1)_.pdf
UNIT - 3 PPT(Part- 1)_.pdf
 
Chapter 3.pdf
Chapter 3.pdfChapter 3.pdf
Chapter 3.pdf
 
Process
ProcessProcess
Process
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
Operating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - EngineeringOperating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - Engineering
 
Operating system
Operating systemOperating system
Operating system
 
CSI-503 - 3. Process Scheduling
CSI-503 - 3. Process SchedulingCSI-503 - 3. Process Scheduling
CSI-503 - 3. Process Scheduling
 
Os unit 2
Os unit 2Os unit 2
Os unit 2
 
Ch03- PROCESSES.ppt
Ch03- PROCESSES.pptCh03- PROCESSES.ppt
Ch03- PROCESSES.ppt
 
OS-Process.pdf
OS-Process.pdfOS-Process.pdf
OS-Process.pdf
 
Unit 2 part 1(Process)
Unit 2 part 1(Process)Unit 2 part 1(Process)
Unit 2 part 1(Process)
 
Operating system - Process and its concepts
Operating system - Process and its conceptsOperating system - Process and its concepts
Operating system - Process and its concepts
 
Supply chain mgmt
Supply chain mgmtSupply chain mgmt
Supply chain mgmt
 
Process concept
Process conceptProcess concept
Process concept
 
Processing management
Processing managementProcessing management
Processing management
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
 
Processes description and process control.
Processes description and process control.Processes description and process control.
Processes description and process control.
 
Processes in Operating System
Processes in Operating SystemProcesses in Operating System
Processes in Operating System
 
Process management1
Process management1Process management1
Process management1
 

More from AnkonGopalBanik

More from AnkonGopalBanik (6)

Register
RegisterRegister
Register
 
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazard
 
Synchronous & Asynchronous data transmission
Synchronous & Asynchronous data transmission  Synchronous & Asynchronous data transmission
Synchronous & Asynchronous data transmission
 
Addressing Modes
Addressing ModesAddressing Modes
Addressing Modes
 
IEEE 488
IEEE 488IEEE 488
IEEE 488
 
Operating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionOperating system || Chapter 1: Introduction
Operating system || Chapter 1: Introduction
 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 

Recently uploaded (20)

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 

Operating system || Chapter 3: Process

  • 2. Process A process is a program in execution. A process is more than the program code, which is sometimes known as the text section. It also includes the current activity, as represented by the value of the program counter and the contents of the processor's registers.
  • 3. Process states As a process executes, it changes state. The state of a process is defined in part by the current activity of that process. Each process may be in one of the following states: Instructions are being executed. The process is waiting to be assigned to a processor. The process is being created. The process is waiting for some event to occur (such as an I/O completion or reception of a signal) The process has finished execution. 01 New 02 Running 03 Waiting 04 Ready 05 Terminated
  • 4. Process states These names are arbitrary, and they vary across operating systems. The states that they represent are found on all systems, however. Certain operating systems also more finely delineate process states. It is important to realize that only one process can be running on any processor at any instant. Many processes may be ready and limiting, however. The state diagram corresponding to these states is presented in bellow figure: Ready Run TerminatedNew Wait/Block SuspendWait Suspend Ready Schedule/Dispatch Priority/Time quantum Completion I/O completion Suspend Resume I/O completed but still in suspend Resume Suspend
  • 5. Process control block (PCB) Each process is represented in the operating system by a process control block (PCB)—also called a task control block. A PCB is shown in bellow figure:
  • 6. Information of PCB PCB contains many pieces of information associated with a specific process, including these: The state may be new, ready, running, waiting, halted, and so on. The counter indicates the address of the next instruction to be executed for this process. The registers vary in number and type, depending on the computer architecture.They include accumulators, index registers, stack pointers, and general-purpose registers, plus any condition-code information. . This information includes a process priority, pointers to scheduling queues, and any other scheduling parameters. This information may include such information as the value of the base and limit registers, the page tables, or the segment tables, depending on the memory system used by the operating system. This information includes the amount of CPU and real time used, time limits, account members, job or process numbers, and so on. This information includes the list of I/O devices allocated to the process, a list of open files, and so on. In brief, the PCB simply serves as the repository for any information that may vary from process to process. Process state01 Program counter02 CPU registers03 CPU-scheduling information 04 Memory-management information 05 Accounting information06 I/O status information 07 PCB PCB Highlights
  • 7. Process scheduling queue The OS maintains all PCBs in Process Scheduling Queues. The OS maintains a separate queue for each of the process states and PCBs of all processes in the same execution state are placed in the same queue. The Operating System maintains the following important process scheduling queues −
  • 8. Process scheduling Partially executed swapped-out processes Ready queue CPU I/O I/O queue I/O queue Time slice expired Child executes Fork a child Interrupt occurs Wait for an interrupt Swap in Swap out end
  • 9. Classification of scheduling or scheduler 1 2 3 Medium-term scheduler The key idea behind a medium-term scheduler is that sometimes it can be advantageous to remove processes from memory (and from active contention for the CPU) and thus reduce the degree of multiprogramming. Long-term scheduler The long-term scheduler, or job scheduler, selects processes from this pool and loads them into memory for execution. Short-term scheduler The short-term scheduler, or CPU scheduler, selects from among the processes that are ready to execute and allocates the CPU to one of them.
  • 10. Kinds of process I/O-bound processYourText Here An I/O-bound process is one that spends more of its time doing I/O than it spends doing computations. A CPU-bound process, in contrast, generates I/O requests infrequently, using more of its time doing computations. 2 1 CPU-bound process
  • 11. Process states Switching the CPU to another process requires performing a state save of the current process and a state restore of a different process. This task is known as a context switch. Context-switch times are highly dependent on hardware support. A context switch here simply requires changing the pointer to the current register set. process Po operating system process P1 Save into PCBo Save into PCB1 Save into PCB1 Save into PCBo . . . . . . Interrupt or system call Interrupt or system call idle idle idle executing executing executing
  • 12. Prepared by: Ankon Gopal Banik Front End Developer | WWF (Web With Friends) m: +8801771981989 p: 027730402 e: agbanik2081@outlook.com 75-B, Kyetpara, Dhamrai, Dhaka, Bangladesh www.wwfriends.org