Operating System Mainframe Systems
Operating System Mainframe Systems
• Web-Based Computing
Real-Time Systems
• Embedded Computing
• Often used as control devices in a
dedicated application such as
controlling scientific experiments,
medical imaging systems, industrial
Module 2 Operating System Structures • Trap - software generated interrupt
caused either by an error or a user
request.
Execution sequence:
Interrupt Handling
Fetch Instruction at PC
• Types of interrupt
Decode
Execute (possibly using registers) – Polling
Write results to registers/mem – Vectored interrupt system
PC = Next Instruction(PC) • Incoming interrupts are disabled
Repeat while another interrupt is being
processed to prevent a lost interrupt.
Computer System Organization
I/O Structure
• I/O devices and the CPU execute
concurrently. • Synchronous I/O
• Each device controller is in charge of
wait instruction idles CPU
a particular device type
until next interrupt
– Each device controller has a
no simultaneous I/O
local buffer. I/O is from the
processing, at most one
device to local buffer of
outstanding I/O request
controller
at a time.
• CPU moves data from/to main
memory to/from the local buffers • Asynchronous I/O - After I/O is
• Device controller interrupts CPU on initiated, control returns to user
completion of I/O program without waiting for I/O
completion.
– Assembly language
instructions (macros and
subroutines)
– Some higher level languages
allow system calls to be made
directly (e.g. C)
• Passing parameters between a
running program and OS via
registers, memory tables or stack.
Information associated with each process. CPU scheduling information, which includes:
process priority, pointers to scheduling
Process state
queues, scheduling parameters
Program counter
CPU registers Accounting information, which includes:
CPU scheduling information amount of CPU and real time used, time
Memory-management information limits, account numbers, job or process
Accounting information number, etc.
I/O status information
• Ready/Suspend – process in
secondary memory and available for
execution
• Parent may terminate execution of
children processes (abort).
Definition of terms