0% found this document useful (0 votes)
34 views20 pages

Chapter01 02

Uploaded by

Fauzan Prasetyo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views20 pages

Chapter01 02

Uploaded by

Fauzan Prasetyo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 20

Operating Systems:

Internals and Design Principles, 6/E


William Stallings

Chapter 2
Operating System Overview

Dave Bremer
Otago Polytechnic, N.Z.
©2008, Prentice Hall
Roadmap
– Operating System Objectives/Functions
– The Evolution of Operating Systems
– Major Achievements
– Developments Leading to Modern Operating
Systems
– Microsoft Windows Overview
– UNIX Systems
– Linux
Operating System
• A program that controls the execution of
application programs
• An interface between applications and
hardware
• Main objectives of an OS:
– Convenience
– Efficiency
– Ability to evolve
Layers and Views
Services Provided
by the Operating System
• Program development
– Editors and debuggers.
• Program execution
– OS handles scheduling of numerous tasks
required to execute a program
• Access I/O devices
– Each device will have unique interface
– OS presents standard interface to users
Services cont…
• Controlled access to files
– Accessing different media but presenting a
common interface to users
– Provides protection in multi-access systems
• System access
– Controls access to the system and its
resources
Services cont…
• Error detection and response
– Internal and external hardware errors
– Software errors
– Operating system cannot grant request of
application
• Accounting
– Collect usage statistics
– Monitor performance
The Role of an OS
• A computer is a set of resources for the
movement, storage, and processing of
data.
• The OS is responsible for managing these
resources.
Operating System
as Software
• The OS functions in the same way as an
ordinary computer software
– It is a program that is executed by the CPU
• Operating system relinquishes control of
the processor
OS as
Resource Manager
Evolution of Operating
Systems
• Operating systems will evolve over time
– Hardware upgrades plus new types of
hardware
– New services
– Fixes
Roadmap
– Operating System Objectives/Functions
– The Evolution of Operating Systems
– Major Achievements
– Developments Leading to Modern Operating
Systems
– Microsoft Windows Overview
– UNIX Systems
– Linux
Evolution of
Operating Systems
• It may be easier to understand the key
requirements of an OS by considering the
evolution of Operating Systems
• Stages include
– Serial Processing
– Simple Batch Systems
– Multiprogrammed batch systems
– Time Sharing Systems
Serial Processing
• No operating system
• Machines run from a console with display
lights, toggle switches, input device, and
printer
• Problems include:
– Scheduling
– Setup time
Simple batch system
• Early computers were extremely
expensive
– Important to maximize processor utilization
• Monitor
– Software that controls the sequence of events
– Batch jobs together
– Program returns control to monitor when
finished
Monitor’s perspective
• Monitor controls the
sequence of events
• Resident Monitor is software
always in memory
• Monitor reads in job and
gives control
• Job returns control to monitor
Job Control Language
• Special type of programming language to
control jobs
• Provides instruction to the monitor
– What compiler to use
– What data to use
Desirable Hardware
Features
• Memory protection for monitor
– Jobs cannot overwrite or alter
• Timer
– Prevent a job from monopolizing system
• Privileged instructions
– Only executed by the monitor
• Interrupts
Modes of Operation
• User Mode
– User program executes in user mode
– Certain areas of memory protected from user
access
– Certain instructions may not be executed
• Kernel Mode
– Monitor executes in kernel mode
– Privileged instructions may be executed, all
memory accessible.
Multiprogrammed
Batch Systems
• CPU is often idle
– Even with automatic job sequencing.
– I/O devices are slow compared to processor

You might also like