SlideShare a Scribd company logo
1 of 9
MODES IN OS
Comparison between RTOS and non real time OS
DUAL MODE
When using an OS, the processor in the system runs in two modes
 User Mode
also known as less privileged mode, slave mode or restricted mode.
 Kernel Mode
also known as system mode,privileged mode,Supervisory mode
• A bit called mode bit,is added to the hardware of the computer to indicate
the current mode.
• With the mode bit,we can distinguish between a task that is executed on
behalf of the operating system and one that is executed on behalf of the user.
 Kernel is an interface between System Hardware and Application Software.
 User mode does not have access to the hardware components of a computer system.
 Kernel mode has direct access to the hardware components of a computer system.
 It the process executing in user mode requires hardware resources, that process should send
a request to the kernel. (system calls)
 Context switching – switching from user mode to Kernel mode
 After completing the supervisory functions (kernel-space)functions, the system context
switches back to user mode.
 When the computer system is executing behalf of a user application ,the system is in User
mode.
 Whenever the operating system gain control of the computer ,it is in kernel mode.
 The system starts in kernel mode when it boots and after the operating system is loaded, it
executes applications in user mode.
 The user process executes in the user mode until it gets a system call.
 Then a system trap is generated and the mode bit is set to zero.
 The system call gets executed in kernel mode.
 After the execution is completed, again a system trap is generated and the mode bit is set to 1.
 The system control returns to user mode and the process execution continues.
User Mode
 When the computer system is run by user applications then the system is in user mode.
Example: word application, PowerPoint, reading a PDF file and browsing the internet.
 In user mode Processes get their own address space and cannot access the address space which
belongs to the kernel.
 So the failure of one process will not affect the operating system.
 If there is an interrupt, it only affects that particular process.
 The user process is permitted to run and use only a subset of functions and instructions in OS.
 This is done in the user mode either by sending a message to a waiting process associated with
the OS kernel or by initiating a system call(call by an OS function)
Note: To switch from kernel mode to user mode, the mode bit should be 1.
Kernel Mode
 A kernel is a software program which is used to access hardware components of a computer
system.
 The system starts in kernel mode when it boots and after the operating system is loaded, it
executes applications in user mode.
 There are some privileged instructions that can only be executed in kernel mode.
 These are interrupt instructions, input output management etc.
 If the privileged instructions are executed in user mode, it is illegal and a trap is generated.
 In the supervisory mode the kernel code run in protected mode.
 Only a system call is permitted to read and write in to the protected memory allocated to the OS
functions.
 The kernel space function execute faster than OS functions.
Note: To switch from user mode to kernel mode bit should be 0
Difference Between User Mode and Kernel Mode
REAL TIME OPERATING SYSTEM
 A real-time operating system is a system that reacts upon outside events and
performs a function based on these and gives a response within a certain time or
within certain deadlines.
 output depends not only on the logical correctness but also on the time at which it is
being produced.
 Time deterministic in nature and output behaviour is predictable.
NON REAL TIME OPERATIONG SYSTEM
 A non-real time operating system is one in which we cannot guarantee the response
time of a task.
 These systems are non-deterministic in nature and we cannot predict the behavior of
the system with respect to time.
eg: Desktop, PC running GPOS, Mobile running Android, online web services etc.
Comparison between RTOS and non real time OS
RTOS Non real time OS
Real-time OS is associated with time bound. Non-real-time OS is not associated with time
bound.
It can be expressed as quantitative expression
of time.
It can’t be expressed as function of time.
Time deterministic in nature Non deterministic in nature
It is of two types – Hard and Soft. It is not further classified.
Deadline of real-time tasks are in the order of
seconds.
Deadline of non-real-time tasks may be
minutes, hours or even days.
output behaviour is predictable. cannot predict the behavior of the system with
respect to time.
Application: Airlines reservation system,
Air traffic control system, airbag, robotic
systems
Application : Desktop computers, workstations,
accounting systems, e-mail, , web services .

More Related Content

What's hot (20)

Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
 
lecture:Operating Syste Ms
lecture:Operating Syste Mslecture:Operating Syste Ms
lecture:Operating Syste Ms
 
Employee management system report
Employee management system reportEmployee management system report
Employee management system report
 
Unix case-study
Unix case-studyUnix case-study
Unix case-study
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
 
Interface
InterfaceInterface
Interface
 
Assemblers: Ch03
Assemblers: Ch03Assemblers: Ch03
Assemblers: Ch03
 
INTERNSHIP REPORT
INTERNSHIP REPORTINTERNSHIP REPORT
INTERNSHIP REPORT
 
Hardwired control
Hardwired controlHardwired control
Hardwired control
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 
Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems
 
Embedded system design process
Embedded system design processEmbedded system design process
Embedded system design process
 
SHLD and LHLD instruction
SHLD and LHLD instructionSHLD and LHLD instruction
SHLD and LHLD instruction
 
Constructor in java
Constructor in javaConstructor in java
Constructor in java
 
Java Beans
Java BeansJava Beans
Java Beans
 
Ch1-Operating System Concept
Ch1-Operating System ConceptCh1-Operating System Concept
Ch1-Operating System Concept
 
Ch12 microprocessor interrupts
Ch12 microprocessor interruptsCh12 microprocessor interrupts
Ch12 microprocessor interrupts
 
Report on web development
Report on web developmentReport on web development
Report on web development
 
Timing and control
Timing and controlTiming and control
Timing and control
 
Control unit
Control  unitControl  unit
Control unit
 

Similar to Presentation1

Kernel | Operating System
Kernel | Operating SystemKernel | Operating System
Kernel | Operating SystemSumit Pandey
 
Operating System and related questions
Operating System and related questionsOperating System and related questions
Operating System and related questionsimdurgesh
 
3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdfrohitbaweja26
 
OPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESOPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESsuthi
 
Kernel mode vs user mode in linux
Kernel mode vs user mode in linuxKernel mode vs user mode in linux
Kernel mode vs user mode in linuxSiddique Ibrahim
 
operating system notes by madhavi.pdf
operating system notes by madhavi.pdfoperating system notes by madhavi.pdf
operating system notes by madhavi.pdfMadhaviAvhankar1
 
Operting system
Operting systemOperting system
Operting systemKAnurag2
 
Operating system by uttam 1
Operating system by uttam 1Operating system by uttam 1
Operating system by uttam 1Sunil Kumar
 
Operating system by uttam
Operating system by uttamOperating system by uttam
Operating system by uttamSunil Kumar
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsmanideepakc
 
Embedded system software
Embedded system softwareEmbedded system software
Embedded system softwareJamia Hamdard
 
4-Process control block.pptx
4-Process control block.pptx4-Process control block.pptx
4-Process control block.pptxsania458451
 
4-Process control block.pptx
4-Process control block.pptx4-Process control block.pptx
4-Process control block.pptxsania458451
 
NE223_chapter 1_Overview of operating systems.ppt
NE223_chapter 1_Overview of operating systems.pptNE223_chapter 1_Overview of operating systems.ppt
NE223_chapter 1_Overview of operating systems.pptMemMem25
 

Similar to Presentation1 (20)

Kernel | Operating System
Kernel | Operating SystemKernel | Operating System
Kernel | Operating System
 
Operating System and related questions
Operating System and related questionsOperating System and related questions
Operating System and related questions
 
3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
 
OPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESOPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTES
 
Operating system
Operating systemOperating system
Operating system
 
Kernel mode vs user mode in linux
Kernel mode vs user mode in linuxKernel mode vs user mode in linux
Kernel mode vs user mode in linux
 
operating system notes by madhavi.pdf
operating system notes by madhavi.pdfoperating system notes by madhavi.pdf
operating system notes by madhavi.pdf
 
Unit 1 q&a
Unit  1 q&aUnit  1 q&a
Unit 1 q&a
 
Operting system
Operting systemOperting system
Operting system
 
Operating system by uttam 1
Operating system by uttam 1Operating system by uttam 1
Operating system by uttam 1
 
Operating system by uttam
Operating system by uttamOperating system by uttam
Operating system by uttam
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system calls
 
Processing management
Processing managementProcessing management
Processing management
 
Operating system
Operating systemOperating system
Operating system
 
Introduction to OS 1.ppt
Introduction to OS 1.pptIntroduction to OS 1.ppt
Introduction to OS 1.ppt
 
Embedded system software
Embedded system softwareEmbedded system software
Embedded system software
 
4-Process control block.pptx
4-Process control block.pptx4-Process control block.pptx
4-Process control block.pptx
 
4-Process control block.pptx
4-Process control block.pptx4-Process control block.pptx
4-Process control block.pptx
 
NE223_chapter 1_Overview of operating systems.ppt
NE223_chapter 1_Overview of operating systems.pptNE223_chapter 1_Overview of operating systems.ppt
NE223_chapter 1_Overview of operating systems.ppt
 

Recently uploaded

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 

Presentation1

  • 1. MODES IN OS Comparison between RTOS and non real time OS
  • 2. DUAL MODE When using an OS, the processor in the system runs in two modes  User Mode also known as less privileged mode, slave mode or restricted mode.  Kernel Mode also known as system mode,privileged mode,Supervisory mode • A bit called mode bit,is added to the hardware of the computer to indicate the current mode. • With the mode bit,we can distinguish between a task that is executed on behalf of the operating system and one that is executed on behalf of the user.
  • 3.  Kernel is an interface between System Hardware and Application Software.  User mode does not have access to the hardware components of a computer system.  Kernel mode has direct access to the hardware components of a computer system.  It the process executing in user mode requires hardware resources, that process should send a request to the kernel. (system calls)  Context switching – switching from user mode to Kernel mode  After completing the supervisory functions (kernel-space)functions, the system context switches back to user mode.
  • 4.  When the computer system is executing behalf of a user application ,the system is in User mode.  Whenever the operating system gain control of the computer ,it is in kernel mode.  The system starts in kernel mode when it boots and after the operating system is loaded, it executes applications in user mode.  The user process executes in the user mode until it gets a system call.  Then a system trap is generated and the mode bit is set to zero.  The system call gets executed in kernel mode.  After the execution is completed, again a system trap is generated and the mode bit is set to 1.  The system control returns to user mode and the process execution continues.
  • 5. User Mode  When the computer system is run by user applications then the system is in user mode. Example: word application, PowerPoint, reading a PDF file and browsing the internet.  In user mode Processes get their own address space and cannot access the address space which belongs to the kernel.  So the failure of one process will not affect the operating system.  If there is an interrupt, it only affects that particular process.  The user process is permitted to run and use only a subset of functions and instructions in OS.  This is done in the user mode either by sending a message to a waiting process associated with the OS kernel or by initiating a system call(call by an OS function) Note: To switch from kernel mode to user mode, the mode bit should be 1.
  • 6. Kernel Mode  A kernel is a software program which is used to access hardware components of a computer system.  The system starts in kernel mode when it boots and after the operating system is loaded, it executes applications in user mode.  There are some privileged instructions that can only be executed in kernel mode.  These are interrupt instructions, input output management etc.  If the privileged instructions are executed in user mode, it is illegal and a trap is generated.  In the supervisory mode the kernel code run in protected mode.  Only a system call is permitted to read and write in to the protected memory allocated to the OS functions.  The kernel space function execute faster than OS functions. Note: To switch from user mode to kernel mode bit should be 0
  • 7. Difference Between User Mode and Kernel Mode
  • 8. REAL TIME OPERATING SYSTEM  A real-time operating system is a system that reacts upon outside events and performs a function based on these and gives a response within a certain time or within certain deadlines.  output depends not only on the logical correctness but also on the time at which it is being produced.  Time deterministic in nature and output behaviour is predictable. NON REAL TIME OPERATIONG SYSTEM  A non-real time operating system is one in which we cannot guarantee the response time of a task.  These systems are non-deterministic in nature and we cannot predict the behavior of the system with respect to time. eg: Desktop, PC running GPOS, Mobile running Android, online web services etc.
  • 9. Comparison between RTOS and non real time OS RTOS Non real time OS Real-time OS is associated with time bound. Non-real-time OS is not associated with time bound. It can be expressed as quantitative expression of time. It can’t be expressed as function of time. Time deterministic in nature Non deterministic in nature It is of two types – Hard and Soft. It is not further classified. Deadline of real-time tasks are in the order of seconds. Deadline of non-real-time tasks may be minutes, hours or even days. output behaviour is predictable. cannot predict the behavior of the system with respect to time. Application: Airlines reservation system, Air traffic control system, airbag, robotic systems Application : Desktop computers, workstations, accounting systems, e-mail, , web services .