Chapter02 p1
Chapter02 p1
Systems:
Internals Chapter 2
and Design
Principles Operating System
Overview
BALOYI VR
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
Program development
Program execution
Access I/O devices
Controlled access to files
System access
Error detection and response
Accounting
Key Interfaces
Instruction
set architecture (ISA)
Define machine
New services
Fixes
Evolution of
Operating Systems
Stages include:
Time
Sharing
Multiprogrammed Systems
Batch Systems
Simple Batch
Systems
Serial
Processing
Serial Processing
Earliest Computers: Problems:
Scheduling:
No operating system
most installations used a
programmers interacted
hardcopy sign-up sheet to
directly with the computer
reserve computer time
hardware
time allocations could
Computers ran from a console run short or long,
with display lights, toggle resulting in wasted
switches, some form of input computer time
device, and a printer
Setup time
Users have access to the
computer in “series” a considerable amount of
time was spent just on setting
up the program to run
Simple Batch Systems
Monitor
user no longer has direct access to processor
job is submitted to computer operator who batches them
together and places them on an input device
program branches back to the monitor when finished
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
Processor executes instruction from the memory
containing the monitor
Executes the instructions in the user program until it
encounters an ending or error condition
“control is passed to a job” means processor is fetching and
executing instructions in a user program
“control is returned to the monitor” means that the processor
is fetching and executing instructions from the monitor
program
Job Control Language
(JCL)
Special type of programming
language used to provide
instructions to the monitor
• while the user program is executing, it must not alter the memory area
containing the monitor
Timer
Privileged instructions
Interrupts
a program in execution
an instance of a running program
the entity that can be assigned to, and executed on, a processor
time sharing
• be responsive to the individual user but be able to support many users
simultaneously
automatic
support of protection
process allocation long-term
modular and access
isolation and storage
programming control
management
A facility that allows programs to address
memory from a logical point of view, without
regard to the amount of main memory
physically available
Conceived to meet the requirement of having
multiple user jobs reside in main memory
concurrently
Allows processes to be comprised of a number of fixed-
size blocks, called pages
Program references a word by means of a virtual address
consists of a page number and an offset within the page
each page may be located anywhere in main memory