SlideShare a Scribd company logo
1 of 22
Operating
Systems
Lecture 2
Agenda for Today
 Review of previous lecture
 Single-user systems
 Batch systems
 Multiprogrammed systems
 Time-sharing systems
 Real-time systems
 Interrupts, traps, and signals
 CPU, I/O, and memory protection
 Recap of the lecture
Single User Systems
 Personal computers – computer
system dedicated to a single user.
 Interactive
 User convenience and
responsiveness.
Single User Systems
 Can adopt technology developed for
larger operating systems—multi-
process, multi-user
 Individuals usually have sole use of
computer and do not need advanced
protection features.
 May run several different
types of operating systems
(Windows, MacOS,
UNIX, Linux)
Batch Systems
 First rudimentary system.
 User  operator
 Reduce setup time by batching similar
jobs
 Automatic job sequencing – automatically
transfers control from one job to another.
 Resident monitor :
 initial control in monitor
 control transfers to job
 when job completes
control transfers back to monitor
Memory Layout
Multiprogrammed
Systems
Several jobs are
kept in main
memory at the
same time, and
the CPU is
multiplexed among
them.
Multiprogrammed
Systems
Example: Two processes P1 and P2
with CPU and I/O bursts of one time
unit each
P1
P2
…
CPU
Burst
I/O
Burst
P1
P2
OS Features Needed
for Multiprogramming
 SPOOLing (Simultaneous Peripheral
Operation On-Line)
 Memory management
 CPU scheduling
Time-sharing Systems
 An interactive system with
multiprogramming
 A job is swapped in and out of
memory to the disk if needed.
 On-line file system must be available
for users to access data and code.
Real-time Systems
 Well-defined fixed-time constraints.
 Often used as a control device in a
dedicated application such as
controlling scientific experiments,
medical imaging systems, industrial
control systems, and some display
systems.
 Real-Time systems may be either
hard or soft real-time.
Real-time Systems …
 Hard real-time systems:
 Secondary storage limited or absent,
data stored in short term memory, or
read-only memory (ROM)
 No virtual memory—time cannot be
“wasted” on translation of logical to
physical addresses
 OS code structured for efficiency
 Plane landing systems, process
control in nuclear power plants,
respirators, etc.
Real-time Systems ...
 Soft real-time systems
 Output should be produced within the
given time constraints but if it is not,
the result is not life threatening
 Useful in applications (multimedia,
virtual reality) requiring advanced
operating-system features.
Interrupts, Traps, and
Signals
 The occurrence of an event is
usually signaled by an interrupt
from either the hardware or
the software.
 Hardware may trigger an
interrupt at any time by
sending a signal to the CPU
usually by way of the system
bus.
 Software may trigger an
interrupt by executing a special
operation called a system call.
.
.
.
Resume
Answer
the Phone
Interrupts, Traps, and
Signals
 A process can generate a
trap, for example, by
dividing a number by zero.
 A user or a process may
generate a signal (an
interrupt to a process)
.
.
.
Resume
Answer
the Phone
Interrupt Handling
 Interrupt transfers control to the
interrupt service routine, generally,
through the interrupt vector, which
contains addresses of all the
interrupt service routines.
 Interrupt architecture must save the
address of the instruction after the
interrupted instruction and the CPU
state so that execution of the
interrupted process may continue
after the interrupt has been serviced.
Interrupt Handling …
 Incoming interrupts are disabled
while another interrupt is being
processed to prevent lost interrupts.
 An operating system is interrupt
driven.
Hardware Protection
 Dual-Mode Operation
 I/O Protection
 Memory Protection
 CPU Protection
Dual-Mode Operation
 Sharing system resources requires
operating system to ensure that an
incorrect program cannot cause
other programs to execute
incorrectly.
 Provide hardware support to
differentiate between at least two
modes of operations.
 User mode – execution done on behalf
of a user.
 Monitor mode (also kernel mode or
system mode) – execution done on
behalf of operating system.
Dual-Mode Operation …
 Mode bit added to computer
hardware to indicate the current
mode: monitor (0) or user (1).
 When an interrupt or fault occurs
hardware switches to monitor mode.
monitor user
Interrupt/fault
set user mode
Privileged instructions can be issued only in monitor mode.
Recap of Lecture
 Single-user systems
 Batch systems
 Multiprogrammed systems
 Time-sharing systems
 Real-time systems
 Interrupts, traps, and signals
 Privileged instructions
 I/O protection
 Recap of the lecture
Operating
Systems
Lecture 2

More Related Content

What's hot

Ch2 OS
Ch2 OSCh2 OS
Ch2 OSC.U
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system conceptsStarlee Lathong
 
1 introduction
1 introduction1 introduction
1 introductionMohd Arif
 
Operating System BCA 301
Operating System BCA 301Operating System BCA 301
Operating System BCA 301cpjcollege
 
Silberschatz / OS Concepts
Silberschatz /  OS Concepts Silberschatz /  OS Concepts
Silberschatz / OS Concepts Alanisca Alanis
 
UNIT-I-RTOS and Concepts
UNIT-I-RTOS and ConceptsUNIT-I-RTOS and Concepts
UNIT-I-RTOS and ConceptsDr.YNM
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1sphs
 
Operating Systems
Operating SystemsOperating Systems
Operating Systemsvampugani
 
Operating systems
Operating systemsOperating systems
Operating systemsJoshuaIgo
 
Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts PresentationNitish Jadia
 
Operating System and related questions
Operating System and related questionsOperating System and related questions
Operating System and related questionsimdurgesh
 
Operating system notes
Operating system notesOperating system notes
Operating system notesSANTOSH RATH
 

What's hot (19)

Ch2 OS
Ch2 OSCh2 OS
Ch2 OS
 
Ch1
Ch1Ch1
Ch1
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system concepts
 
OS_Ch2
OS_Ch2OS_Ch2
OS_Ch2
 
1 introduction
1 introduction1 introduction
1 introduction
 
02.Os Structure
02.Os Structure02.Os Structure
02.Os Structure
 
Operating System BCA 301
Operating System BCA 301Operating System BCA 301
Operating System BCA 301
 
Silberschatz / OS Concepts
Silberschatz /  OS Concepts Silberschatz /  OS Concepts
Silberschatz / OS Concepts
 
UNIT-I-RTOS and Concepts
UNIT-I-RTOS and ConceptsUNIT-I-RTOS and Concepts
UNIT-I-RTOS and Concepts
 
OS - Ch1
OS - Ch1OS - Ch1
OS - Ch1
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Operating System
Operating SystemOperating System
Operating System
 
Operating systems
Operating systemsOperating systems
Operating systems
 
Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts Presentation
 
Operating System and related questions
Operating System and related questionsOperating System and related questions
Operating System and related questions
 
Introduction to OS.
Introduction to OS.Introduction to OS.
Introduction to OS.
 
Chapter02 new
Chapter02 newChapter02 new
Chapter02 new
 
Ch13 (1)
Ch13 (1)Ch13 (1)
Ch13 (1)
 
Operating system notes
Operating system notesOperating system notes
Operating system notes
 

Similar to OS Lecture 2: Single-User, Batch, Multi, Time-Share & Real-Time Systems

Ch1 OS
Ch1 OSCh1 OS
Ch1 OSC.U
 
Operting system
Operting systemOperting system
Operting systemKAnurag2
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESKopinathMURUGESAN
 
operating system over view.ppt operating sysyems
operating system over view.ppt operating sysyemsoperating system over view.ppt operating sysyems
operating system over view.ppt operating sysyemsJyoReddy9
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - IntroductionWayne Jones Jnr
 
Operating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chaptersOperating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chapterssphs
 
Embedded Intro India05
Embedded Intro India05Embedded Intro India05
Embedded Intro India05Rajesh Gupta
 
Mca ii os u-1 introduction to os
Mca  ii  os u-1 introduction to osMca  ii  os u-1 introduction to os
Mca ii os u-1 introduction to osRai University
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionArnoyKhan
 

Similar to OS Lecture 2: Single-User, Batch, Multi, Time-Share & Real-Time Systems (20)

Ch1 OS
Ch1 OSCh1 OS
Ch1 OS
 
OS_Ch1
OS_Ch1OS_Ch1
OS_Ch1
 
OSCh1
OSCh1OSCh1
OSCh1
 
Ch1
Ch1Ch1
Ch1
 
OSCh2
OSCh2OSCh2
OSCh2
 
Operting system
Operting systemOperting system
Operting system
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTES
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
 
operating system over view.ppt operating sysyems
operating system over view.ppt operating sysyemsoperating system over view.ppt operating sysyems
operating system over view.ppt operating sysyems
 
OSLec1&2.ppt
OSLec1&2.pptOSLec1&2.ppt
OSLec1&2.ppt
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - Introduction
 
Operating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chaptersOperating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chapters
 
Embedded Intro India05
Embedded Intro India05Embedded Intro India05
Embedded Intro India05
 
Mca ii os u-1 introduction to os
Mca  ii  os u-1 introduction to osMca  ii  os u-1 introduction to os
Mca ii os u-1 introduction to os
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course Introduction
 
OS-ch01-2024.ppt
OS-ch01-2024.pptOS-ch01-2024.ppt
OS-ch01-2024.ppt
 
Types of os
Types of osTypes of os
Types of os
 
Module1
Module1Module1
Module1
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 

Recently uploaded

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
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
 
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
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
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
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
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
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
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
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
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
 
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🔝
 
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
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.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
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
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
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

OS Lecture 2: Single-User, Batch, Multi, Time-Share & Real-Time Systems

  • 2. Agenda for Today  Review of previous lecture  Single-user systems  Batch systems  Multiprogrammed systems  Time-sharing systems  Real-time systems  Interrupts, traps, and signals  CPU, I/O, and memory protection  Recap of the lecture
  • 3. Single User Systems  Personal computers – computer system dedicated to a single user.  Interactive  User convenience and responsiveness.
  • 4. Single User Systems  Can adopt technology developed for larger operating systems—multi- process, multi-user  Individuals usually have sole use of computer and do not need advanced protection features.  May run several different types of operating systems (Windows, MacOS, UNIX, Linux)
  • 5. Batch Systems  First rudimentary system.  User  operator  Reduce setup time by batching similar jobs  Automatic job sequencing – automatically transfers control from one job to another.  Resident monitor :  initial control in monitor  control transfers to job  when job completes control transfers back to monitor
  • 7. Multiprogrammed Systems Several jobs are kept in main memory at the same time, and the CPU is multiplexed among them.
  • 8. Multiprogrammed Systems Example: Two processes P1 and P2 with CPU and I/O bursts of one time unit each P1 P2 … CPU Burst I/O Burst P1 P2
  • 9. OS Features Needed for Multiprogramming  SPOOLing (Simultaneous Peripheral Operation On-Line)  Memory management  CPU scheduling
  • 10. Time-sharing Systems  An interactive system with multiprogramming  A job is swapped in and out of memory to the disk if needed.  On-line file system must be available for users to access data and code.
  • 11. Real-time Systems  Well-defined fixed-time constraints.  Often used as a control device in a dedicated application such as controlling scientific experiments, medical imaging systems, industrial control systems, and some display systems.  Real-Time systems may be either hard or soft real-time.
  • 12. Real-time Systems …  Hard real-time systems:  Secondary storage limited or absent, data stored in short term memory, or read-only memory (ROM)  No virtual memory—time cannot be “wasted” on translation of logical to physical addresses  OS code structured for efficiency  Plane landing systems, process control in nuclear power plants, respirators, etc.
  • 13. Real-time Systems ...  Soft real-time systems  Output should be produced within the given time constraints but if it is not, the result is not life threatening  Useful in applications (multimedia, virtual reality) requiring advanced operating-system features.
  • 14. Interrupts, Traps, and Signals  The occurrence of an event is usually signaled by an interrupt from either the hardware or the software.  Hardware may trigger an interrupt at any time by sending a signal to the CPU usually by way of the system bus.  Software may trigger an interrupt by executing a special operation called a system call. . . . Resume Answer the Phone
  • 15. Interrupts, Traps, and Signals  A process can generate a trap, for example, by dividing a number by zero.  A user or a process may generate a signal (an interrupt to a process) . . . Resume Answer the Phone
  • 16. Interrupt Handling  Interrupt transfers control to the interrupt service routine, generally, through the interrupt vector, which contains addresses of all the interrupt service routines.  Interrupt architecture must save the address of the instruction after the interrupted instruction and the CPU state so that execution of the interrupted process may continue after the interrupt has been serviced.
  • 17. Interrupt Handling …  Incoming interrupts are disabled while another interrupt is being processed to prevent lost interrupts.  An operating system is interrupt driven.
  • 18. Hardware Protection  Dual-Mode Operation  I/O Protection  Memory Protection  CPU Protection
  • 19. Dual-Mode Operation  Sharing system resources requires operating system to ensure that an incorrect program cannot cause other programs to execute incorrectly.  Provide hardware support to differentiate between at least two modes of operations.  User mode – execution done on behalf of a user.  Monitor mode (also kernel mode or system mode) – execution done on behalf of operating system.
  • 20. Dual-Mode Operation …  Mode bit added to computer hardware to indicate the current mode: monitor (0) or user (1).  When an interrupt or fault occurs hardware switches to monitor mode. monitor user Interrupt/fault set user mode Privileged instructions can be issued only in monitor mode.
  • 21. Recap of Lecture  Single-user systems  Batch systems  Multiprogrammed systems  Time-sharing systems  Real-time systems  Interrupts, traps, and signals  Privileged instructions  I/O protection  Recap of the lecture