0% found this document useful (0 votes)
4 views34 pages

Operating Systems Overview and Concepts

The document provides an overview of operating systems, detailing their functions, components, and the management of hardware resources. It covers key concepts such as memory hierarchy, interrupts, and various I/O processing methods, including programmed I/O and direct memory access. The content is structured around the textbook 'Operating Systems: Internals and Design Principles' by William Stallings.

Uploaded by

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

Operating Systems Overview and Concepts

The document provides an overview of operating systems, detailing their functions, components, and the management of hardware resources. It covers key concepts such as memory hierarchy, interrupts, and various I/O processing methods, including programmed I/O and direct memory access. The content is structured around the textbook 'Operating Systems: Internals and Design Principles' by William Stallings.

Uploaded by

pm.sadeghi.dev
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

‫به نام خدا‬

‫سیستم های عامل‬


reference

Willam Stallings
‫بارم بندی‬

‫میانترم اول ‪ 5‬نمره‬ ‫•‬


‫میانترم دوم ‪ 5‬نمره‬ ‫•‬
‫پایان ترم ‪ 7‬نمره‬ ‫•‬
‫حضور در کالس و فعالیت ‪ 3‬نمره‬ ‫•‬
Operating Systems:
Internals and Design Principles, 6/E
William Stallings

Chapter 1
Computer System Overview

Patricia Roy
Manatee Community College, Venice,
FL
©2008, Prentice Hall
Operating System
• Exploits the hardware resources of one or
more processors
• Provides a set of services to system users
• Manages secondary memory and I/O
devices
Basic Elements
• Main Memory
– Volatile
– Referred to as real memory or primary
memory
Basic Elements
• I/O Modules
– Secondary Memory Devices
– Communications equipment
– Terminals
• System bus
– Communication among processors, main
memory, and I/O modules
Computer Components: Top-
Level View
Instruction Execution
• Two steps
– Processor reads (fetches) instructions from
memory
– Processor executes each instruction
Basic Instruction Cycle
Interrupts
• Interrupt the normal sequencing of the
processor
• Most I/O devices are slower than the
processor
– Processor must pause to wait for device
Classes of Interrupts
Program Flow of Control
Program Flow of Control
Program Flow of Control
Interrupt Stage
• Processor checks for interrupts
• If interrupt
– Suspend execution of program
– Execute interrupt-handler routine
Transfer of Control via Interrupts
Instruction Cycle with Interrupts
Simple Interrupt Processing
Sequential Interrupt Processing
Nested Interrupt Processing
Multiprogramming
• Processor has more than one program to
execute
• The sequence in which programs are
executed depend on their relative priority
and whether they are waiting for I/O
• After an interrupt handler completes,
control may not return to the program that
was executing at the time of the interrupt
Memory Hierarchy
• Faster access time, greater cost per bit
• Greater capacity, smaller cost per bit
• Greater capacity, slower access speed
The Memory Hierarchy
Going Down the Hierarchy
• Decreasing cost per bit
• Increasing capacity
• Increasing access time
• Decreasing frequency of access to the
memory by the processor
Secondary Memory
• Auxiliary memory
• External
• Nonvolatile
• Used to store program and data files
Cache Memory
• Processor speed faster than memory
access speed
• Exploit the principle of locality with a small
fast memory
Cache and Main Memory
Cache Principles
• Contains copy of a portion of main
memory
• Processor first checks cache
• If desired data item not found, relevant
block of memory read into cache
• Because of locality of reference, it is likely
that future memory references are in that
block
Cache/Main-Memory Structure
Programmed I/O
• I/O module performs the
action, not the processor
• Sets the appropriate bits in
the I/O status register
• No interrupts occur
• Processor checks status until
operation is complete
Interrupt-Driven I/O
• Processor is interrupted when
I/O module ready to
exchange data
• Processor saves context of
program executing and
begins executing interrupt-
handler
Interrupt-Driven I/O
• No needless waiting
• Consumes a lot of
processor time because
every word read or
written passes through
the processor
Direct Memory Access
• Transfers a block of data
directly to or from memory
• An interrupt is sent when
the transfer is complete
• More efficient

You might also like