SlideShare a Scribd company logo
2
Most read
4
Most read
5
Most read
Context of a process
• The context of a process is its state or
mode in which a process runs.
The PROCESS can Run in Two modes:
 Kernel mode
 User mode
Kernel mode
• Is commonly referred to as the
supervisor mode .
• System processes such as swapping,
memory allocation , house keeping and
administrative functions, run in kernel
mode.
User mode
• Is the mode in which user processes run.
• User process such as application programs,
utility programs run in user mode, but switch
to kernel mode when there is an exception or
system call.
Differences between kernel mode and user mode
Kernel mode User mode
1. Executing code has complete and
unrestricted access to the underlying
hardware.
1. Executing code has no ability to directly
access hardware or reference memory.
2. It can execute any CPU instruction and
reference any memory address.
2. It can not execute.
3. Crashes in kernel mode are
catastrophic; they will halt the entire PC.
3. Crashes in user mode are always
recoverable.
4. It cannot be arbitrarily suspended and
replaced by another process.
4. It can be interrupted by an interrupt
or an exception.
5. A process running in kernel mode
can read or write directly to OS
memory.
5. A process running in user mode can't
read or write directly to OS memory.
6. Programs run in system level. 6. Programs run in a application level.
7. Kernel mode has higher priority. 7. User mode has lower priority.

More Related Content

PPTX
Presentation on simple os
PPTX
CONTEXT SWITCHING,PREEMPTIVE,NONPREEMPTIVE.pptx
PPT
Kernel mode vs user mode in linux
PPTX
Kernel | Operating System
PPTX
opearating system notes mumbai university.pptx
PPTX
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
PPTX
Arm modes
PPT
Operating System.ppt
Presentation on simple os
CONTEXT SWITCHING,PREEMPTIVE,NONPREEMPTIVE.pptx
Kernel mode vs user mode in linux
Kernel | Operating System
opearating system notes mumbai university.pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
Arm modes
Operating System.ppt

Similar to 3. Context of a process in a unix .pptx (20)

PPT
chapter1.ppt
DOC
OPERATING SYSTEM - SHORT NOTES
PPTX
Presentation1
PPTX
OPERATING SYSTEMS OVERVIEW111111111.pptx
PPTX
How Operating system works.
PPTX
UNIT 2 OS.pptx Introduction of Operating System
PPTX
UNIT I-Processes.pptx
PDF
Comprehensive Presentation on Computer Organization and Architecture
PDF
Process management- This ppt contains all required information regarding oper...
PDF
PB1MAT_TIF17 - Pertemuan 1-2ghfctrerdxt.pdf
PDF
OS Lecture 01 Introductiodg (Slides).pdf
PPT
ch2 - Computer-System Structures Operating system
PPTX
Unit 2_OS process management
PPT
Section01 overview
PPT
Section01 overview (1)
PPTX
Process management1
PPTX
OSModule1 important topics in detailed with examples
PPTX
Operating Systems unit 1 & 2 - BBA / MBA
PPTX
Operating Systems - Introduction and unit 1
PDF
Engg-0505-IT-Operating-Systems-2nd-year.pdf
chapter1.ppt
OPERATING SYSTEM - SHORT NOTES
Presentation1
OPERATING SYSTEMS OVERVIEW111111111.pptx
How Operating system works.
UNIT 2 OS.pptx Introduction of Operating System
UNIT I-Processes.pptx
Comprehensive Presentation on Computer Organization and Architecture
Process management- This ppt contains all required information regarding oper...
PB1MAT_TIF17 - Pertemuan 1-2ghfctrerdxt.pdf
OS Lecture 01 Introductiodg (Slides).pdf
ch2 - Computer-System Structures Operating system
Unit 2_OS process management
Section01 overview
Section01 overview (1)
Process management1
OSModule1 important topics in detailed with examples
Operating Systems unit 1 & 2 - BBA / MBA
Operating Systems - Introduction and unit 1
Engg-0505-IT-Operating-Systems-2nd-year.pdf
Ad

More from Priyadarshini648418 (13)

PPTX
Process scheduling commands in unix.pptx
PPTX
DBMS_Online database management sys.pptx
PPTX
1 Data Manipulation, data mining techniq
PPT
Applied artificial intelligece of pg.ppt
PPT
AAI expert system and their usecases.ppt
PPTX
deep learn about blood vessel auto1.pptx
PPT
PowerPoint_merge.ppt on unix programming
PPT
Applied Artificial Intelligence presenttt
PPTX
Nest_Dictionaries in python coding1.pptx
PPTX
Gender Recognition in the voice PPT.pptx
PPTX
Data Science Machine Lerning Bigdat.pptx
PPTX
2. UNIX OS System Architecture easy.pptx
PPTX
Unix_Introduction_BCA.pptx the very basi
Process scheduling commands in unix.pptx
DBMS_Online database management sys.pptx
1 Data Manipulation, data mining techniq
Applied artificial intelligece of pg.ppt
AAI expert system and their usecases.ppt
deep learn about blood vessel auto1.pptx
PowerPoint_merge.ppt on unix programming
Applied Artificial Intelligence presenttt
Nest_Dictionaries in python coding1.pptx
Gender Recognition in the voice PPT.pptx
Data Science Machine Lerning Bigdat.pptx
2. UNIX OS System Architecture easy.pptx
Unix_Introduction_BCA.pptx the very basi
Ad

Recently uploaded (20)

PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Well-logging-methods_new................
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
Digital Logic Computer Design lecture notes
PPTX
Sustainable Sites - Green Building Construction
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Artificial Intelligence
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Construction Project Organization Group 2.pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
PPT on Performance Review to get promotions
PPTX
Geodesy 1.pptx...............................................
PPT
Mechanical Engineering MATERIALS Selection
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Foundation to blockchain - A guide to Blockchain Tech
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Well-logging-methods_new................
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
CYBER-CRIMES AND SECURITY A guide to understanding
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Digital Logic Computer Design lecture notes
Sustainable Sites - Green Building Construction
OOP with Java - Java Introduction (Basics)
Artificial Intelligence
Embodied AI: Ushering in the Next Era of Intelligent Systems
Construction Project Organization Group 2.pptx
additive manufacturing of ss316l using mig welding
PPT on Performance Review to get promotions
Geodesy 1.pptx...............................................
Mechanical Engineering MATERIALS Selection
Model Code of Practice - Construction Work - 21102022 .pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf

3. Context of a process in a unix .pptx

  • 1. Context of a process
  • 2. • The context of a process is its state or mode in which a process runs. The PROCESS can Run in Two modes:  Kernel mode  User mode
  • 3. Kernel mode • Is commonly referred to as the supervisor mode . • System processes such as swapping, memory allocation , house keeping and administrative functions, run in kernel mode.
  • 4. User mode • Is the mode in which user processes run. • User process such as application programs, utility programs run in user mode, but switch to kernel mode when there is an exception or system call.
  • 5. Differences between kernel mode and user mode Kernel mode User mode 1. Executing code has complete and unrestricted access to the underlying hardware. 1. Executing code has no ability to directly access hardware or reference memory. 2. It can execute any CPU instruction and reference any memory address. 2. It can not execute. 3. Crashes in kernel mode are catastrophic; they will halt the entire PC. 3. Crashes in user mode are always recoverable. 4. It cannot be arbitrarily suspended and replaced by another process. 4. It can be interrupted by an interrupt or an exception. 5. A process running in kernel mode can read or write directly to OS memory. 5. A process running in user mode can't read or write directly to OS memory. 6. Programs run in system level. 6. Programs run in a application level. 7. Kernel mode has higher priority. 7. User mode has lower priority.