Lec 1
Lec 1
(CS215)
Lecture 1:Introduction
1.4
What Does the Term Operating System Mean?
An operating system is
• a program that manages a computer’s hardware and application
programs.
• Also, it acts as an intermediary between the computer user and the
computer hardware.
Operating system goals:
• Execute user programs and make solving user problems easier
• Make the computer system convenient to use
• Use the computer hardware in an efficient manner
1.5
What Operating Systems Do
Depends on the point of view
Users want convenience, ease of use and good performance
• Don’t care about resource utilization
But shared computer such as mainframe or minicomputer must keep all
users happy
• Operating system is a resource allocator and control program
making efficient use of HW and managing execution of user programs
Users of dedicate systems such as workstations have dedicated resources
but frequently use shared resources from servers
Mobile devices like smartphones and tables are resource poor, optimized
for usability and battery life
• Mobile user interfaces such as touch screens, voice recognition
Some computers have little or no user interface, such as embedded
computers in devices and automobiles
• Run primarily without user intervention
1.6
Quiz
What are the three main purposes of an operating
system?
Answer: The three main purposes are:
1.7
Operating System Definition
True or false?
a) kernel remains in the memory during the entire computer
session
b) kernel is made of various modules which can not be loaded in
running operating system
c) kernel is the first part of the operating system to load into memory
during booting
d) kernel is the program that constitutes the central core of the
operating system
1.9
Computer System Structure
1.11
Overview of Computer System Structure
Computer System Organization
Computer-system operation
• One or more CPUs, device controllers connect
through common bus providing access to shared
memory
• Concurrent execution of CPUs and devices
competing for memory cycles
1.13
Computer-System Operation
1.14
Example: windows device manager
1.15
Interrupts
1.16
Interrupt Timeline
1.17
Common Functions of Interrupts
1.18
Interrupt Handling
1.19
I/O Structure
1.20
I/O Structure (Cont.)
1.22
Direct Memory Access Structure
1.23
Storage Structure
1.24
Storage Structure (Cont.)
1.25
Storage Definitions and Notation Review
The basic unit of computer storage is the bit. A bit can contain one of two
values, 0 and 1. All other storage in a computer is based on collections of bits.
Given enough bits, it is amazing how many things a computer can represent:
numbers, letters, images, movies, sounds, documents, and programs, to name
a few. A byte is 8 bits, and on most computers it is the smallest convenient
chunk of storage. For example, most computers don’t have an instruction to
move a bit but do have one to move a byte. A less common term is word,
which is a given computer architecture’s native unit of data. A word is made
up of one or more bytes. For example, a computer that has 64-bit registers and
64-bit memory addressing typically has 64-bit (8-byte) words. A computer
executes many operations in its native word size rather than a byte at a time.
1.27
Storage-Device Hierarchy
1.28
Operating-System Operations
1.31
Transition from User to Kernel Mode
1.32
Quiz
1.33