SlideShare a Scribd company logo
1 of 8
Context Switching Group 1 – Presented by David Calhoun Question 3.7: What are the actions taken by the kernel to context-switch between processes?
Multitasking (real life) (Look carefully...)
Multitasking (OS) (process scheduler)
What is a context switch? -process of suspending and resuming processes -triggered by interrupt (for instance, an IO interrupt), preemptive multitasking, or as part of user/kernel mode switching -process context represented by the Process Control Block (PCB)
Process Control Block (PCB) The PCB is "the manifestation of a process in an operating system" Harvey M. Deitel (1984) [1982].  An introduction to operating systems
What's in the PCB?
PCB components ,[object Object],[object Object],[object Object],[object Object],[object Object],More complete list: p. 104
Overhead ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot (20)

Modes of transfer
Modes of transferModes of transfer
Modes of transfer
 
process control block
process control blockprocess control block
process control block
 
Kernel (OS)
Kernel (OS)Kernel (OS)
Kernel (OS)
 
Modes of data transfer
Modes of data transferModes of data transfer
Modes of data transfer
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Multi processor scheduling
Multi  processor schedulingMulti  processor scheduling
Multi processor scheduling
 
Program control
Program controlProgram control
Program control
 
Input output systems ppt - cs2411
Input output systems ppt - cs2411Input output systems ppt - cs2411
Input output systems ppt - cs2411
 
Memory management
Memory managementMemory management
Memory management
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Pipeline hazards in computer Architecture ppt
Pipeline hazards in computer Architecture pptPipeline hazards in computer Architecture ppt
Pipeline hazards in computer Architecture ppt
 
5. spooling and buffering
5. spooling and buffering 5. spooling and buffering
5. spooling and buffering
 
12 process control blocks
12 process control blocks12 process control blocks
12 process control blocks
 
Interrupt presentaion
Interrupt presentaionInterrupt presentaion
Interrupt presentaion
 
Process management
Process managementProcess management
Process management
 
Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9
 
IO buffering
IO bufferingIO buffering
IO buffering
 

Viewers also liked

Operating System 3
Operating System 3Operating System 3
Operating System 3tech2click
 
OS scheduling and The anatomy of a context switch
OS scheduling and The anatomy of a context switchOS scheduling and The anatomy of a context switch
OS scheduling and The anatomy of a context switchDaniel Ben-Zvi
 
Context Switching - The state of mind when doing several projects at once
Context Switching - The state of mind when doing several projects at onceContext Switching - The state of mind when doing several projects at once
Context Switching - The state of mind when doing several projects at onceCharles-Louis de Maere
 
Device Drivers
Device DriversDevice Drivers
Device DriversSuhas S R
 
Embedded systems notes
Embedded systems notesEmbedded systems notes
Embedded systems notesShikha Sharma
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)Imdad Ullah
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating SystemTech_MX
 
CPU scheduling algorithms in OS
CPU scheduling algorithms in OSCPU scheduling algorithms in OS
CPU scheduling algorithms in OSharini0810
 
Purpose of command interpreter
Purpose of command interpreterPurpose of command interpreter
Purpose of command interpreterSumant Diwakar
 
Process Control Block & Threads and Their Management
Process Control Block & Threads and Their ManagementProcess Control Block & Threads and Their Management
Process Control Block & Threads and Their ManagementUjjwal Kumar
 
Window scheduling algorithm
Window scheduling algorithmWindow scheduling algorithm
Window scheduling algorithmBinal Parekh
 
Round Robin Scheduling Algorithm (Simulation)
Round Robin Scheduling Algorithm (Simulation)Round Robin Scheduling Algorithm (Simulation)
Round Robin Scheduling Algorithm (Simulation)Everywhere
 
Mobile HTML, CSS, and JavaScript
Mobile HTML, CSS, and JavaScriptMobile HTML, CSS, and JavaScript
Mobile HTML, CSS, and JavaScriptfranksvalli
 
Oracle - SQL-PL/SQL context switching
Oracle - SQL-PL/SQL context switchingOracle - SQL-PL/SQL context switching
Oracle - SQL-PL/SQL context switchingSmitha Padmanabhan
 

Viewers also liked (20)

Operating System 3
Operating System 3Operating System 3
Operating System 3
 
OS scheduling and The anatomy of a context switch
OS scheduling and The anatomy of a context switchOS scheduling and The anatomy of a context switch
OS scheduling and The anatomy of a context switch
 
Context Switching - The state of mind when doing several projects at once
Context Switching - The state of mind when doing several projects at onceContext Switching - The state of mind when doing several projects at once
Context Switching - The state of mind when doing several projects at once
 
Device Drivers
Device DriversDevice Drivers
Device Drivers
 
Embedded systems notes
Embedded systems notesEmbedded systems notes
Embedded systems notes
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 
CPU scheduling algorithms in OS
CPU scheduling algorithms in OSCPU scheduling algorithms in OS
CPU scheduling algorithms in OS
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 
Purpose of command interpreter
Purpose of command interpreterPurpose of command interpreter
Purpose of command interpreter
 
01 c
01 c01 c
01 c
 
Lesson 7 Process Control Block
Lesson 7 Process Control BlockLesson 7 Process Control Block
Lesson 7 Process Control Block
 
Chtp404
Chtp404Chtp404
Chtp404
 
Process Control Block & Threads and Their Management
Process Control Block & Threads and Their ManagementProcess Control Block & Threads and Their Management
Process Control Block & Threads and Their Management
 
Window scheduling algorithm
Window scheduling algorithmWindow scheduling algorithm
Window scheduling algorithm
 
Round Robin Scheduling Algorithm (Simulation)
Round Robin Scheduling Algorithm (Simulation)Round Robin Scheduling Algorithm (Simulation)
Round Robin Scheduling Algorithm (Simulation)
 
Mobile HTML, CSS, and JavaScript
Mobile HTML, CSS, and JavaScriptMobile HTML, CSS, and JavaScript
Mobile HTML, CSS, and JavaScript
 
VLIW Processors
VLIW ProcessorsVLIW Processors
VLIW Processors
 
Process Scheduling
Process SchedulingProcess Scheduling
Process Scheduling
 
Oracle - SQL-PL/SQL context switching
Oracle - SQL-PL/SQL context switchingOracle - SQL-PL/SQL context switching
Oracle - SQL-PL/SQL context switching
 

Similar to Context Switching: What Actions Does the Kernel Take

operating system question bank
operating system question bankoperating system question bank
operating system question bankrajatdeep kaur
 
23565104 process-management(2)
23565104 process-management(2)23565104 process-management(2)
23565104 process-management(2)Anuj Malhotra
 
Introduction to Operating System (Important Notes)
Introduction to Operating System (Important Notes)Introduction to Operating System (Important Notes)
Introduction to Operating System (Important Notes)Gaurav Kakade
 
Week 11Linux InternalsProcesses, schedulingLecture o.docx
Week 11Linux InternalsProcesses, schedulingLecture o.docxWeek 11Linux InternalsProcesses, schedulingLecture o.docx
Week 11Linux InternalsProcesses, schedulingLecture o.docxmelbruce90096
 
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSVTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSvtunotesbysree
 
OS_UNIT_2 Study Materials (1).docx
OS_UNIT_2 Study Materials (1).docxOS_UNIT_2 Study Materials (1).docx
OS_UNIT_2 Study Materials (1).docxGayathriRHICETCSESTA
 
UNIT-2-Process-Management.pdf
UNIT-2-Process-Management.pdfUNIT-2-Process-Management.pdf
UNIT-2-Process-Management.pdfaakritii765
 
Operating system - Process and its concepts
Operating system - Process and its conceptsOperating system - Process and its concepts
Operating system - Process and its conceptsKaran Thakkar
 
15. Computer Systems Basic Software 1
15. Computer Systems   Basic Software 115. Computer Systems   Basic Software 1
15. Computer Systems Basic Software 1New Era University
 
Ch2_Processes_and_process_management_1.ppt
Ch2_Processes_and_process_management_1.pptCh2_Processes_and_process_management_1.ppt
Ch2_Processes_and_process_management_1.pptMohammad Almuiet
 
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 Q/A
Operating system Q/AOperating system Q/A
Operating system Q/AAbdul Munam
 
Linux process management
Linux process managementLinux process management
Linux process managementRaghu nath
 

Similar to Context Switching: What Actions Does the Kernel Take (20)

水晶礦脈
水晶礦脈水晶礦脈
水晶礦脈
 
operating system question bank
operating system question bankoperating system question bank
operating system question bank
 
23565104 process-management(2)
23565104 process-management(2)23565104 process-management(2)
23565104 process-management(2)
 
Introduction to Operating System (Important Notes)
Introduction to Operating System (Important Notes)Introduction to Operating System (Important Notes)
Introduction to Operating System (Important Notes)
 
Week 11Linux InternalsProcesses, schedulingLecture o.docx
Week 11Linux InternalsProcesses, schedulingLecture o.docxWeek 11Linux InternalsProcesses, schedulingLecture o.docx
Week 11Linux InternalsProcesses, schedulingLecture o.docx
 
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSVTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
 
seminar report
seminar reportseminar report
seminar report
 
OS_UNIT_2 Study Materials (1).docx
OS_UNIT_2 Study Materials (1).docxOS_UNIT_2 Study Materials (1).docx
OS_UNIT_2 Study Materials (1).docx
 
Lecture 5 process concept
Lecture 5   process conceptLecture 5   process concept
Lecture 5 process concept
 
Operating System
Operating SystemOperating System
Operating System
 
Linux Internals - Interview essentials 4.0
Linux Internals - Interview essentials 4.0Linux Internals - Interview essentials 4.0
Linux Internals - Interview essentials 4.0
 
UNIT-2-Process-Management.pdf
UNIT-2-Process-Management.pdfUNIT-2-Process-Management.pdf
UNIT-2-Process-Management.pdf
 
Operating system - Process and its concepts
Operating system - Process and its conceptsOperating system - Process and its concepts
Operating system - Process and its concepts
 
15. Computer Systems Basic Software 1
15. Computer Systems   Basic Software 115. Computer Systems   Basic Software 1
15. Computer Systems Basic Software 1
 
Ch2_Processes_and_process_management_1.ppt
Ch2_Processes_and_process_management_1.pptCh2_Processes_and_process_management_1.ppt
Ch2_Processes_and_process_management_1.ppt
 
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
 
Operating system Q/A
Operating system Q/AOperating system Q/A
Operating system Q/A
 
Linux process management
Linux process managementLinux process management
Linux process management
 
Cs8493 unit 2
Cs8493 unit 2Cs8493 unit 2
Cs8493 unit 2
 

Context Switching: What Actions Does the Kernel Take

  • 1. Context Switching Group 1 – Presented by David Calhoun Question 3.7: What are the actions taken by the kernel to context-switch between processes?
  • 2. Multitasking (real life) (Look carefully...)
  • 4. What is a context switch? -process of suspending and resuming processes -triggered by interrupt (for instance, an IO interrupt), preemptive multitasking, or as part of user/kernel mode switching -process context represented by the Process Control Block (PCB)
  • 5. Process Control Block (PCB) The PCB is "the manifestation of a process in an operating system" Harvey M. Deitel (1984) [1982]. An introduction to operating systems
  • 7.
  • 8.