Introduction to Operating Systems
Introduction to Operating Systems
Systems
Overview of computer systems and operating system
G. Asante
Outline
• Computer-System Structure
• Computer-System Organization
• Computer-System Operation
• Interrupts
• Storage structure
• Computer-System Architecture
• Concept of O/S
• O/S goals, Structures, operations, functions, types, components, services.
• System calls
• Virtual machines
Objectives
• Describe the general organization of a computer system and the role
of interrupts
• Describe the components in a modern, multiprocessor computer
system
• Illustrate the transition from user mode to kernel mode
• Discuss how operating systems are used in various computing
environments
• Provide examples of free and open-source operating systems
Computer System Structure
• Computer system can be divided into four components:
• Hardware – provides basic computing resources
• CPU, memory, I/O devices
• Operating system
• Controls and coordinates use of hardware among various applications and users
• Application programs – define the ways in which the system resources are
used to solve the computing problems of the users
• Word processors, compilers, web browsers, database systems, video games
• Users
• People, machines, other computers
Abstract View of Components of Computer System
Four Components of a Computer System
Basic Elements of Computer
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
Computer-System Operation
• I/O devices and the CPU can execute concurrently
• Each device controller is in charge of a particular device type
• Each device controller has a local buffer
• Each device controller type has an operating system device driver to
manage it
• CPU moves data from/to main memory to/from local buffers
• I/O is from the device to local buffer of controller
• Device controller informs CPU that it has finished its operation by
causing an interrupt
Instruction execution
• Two parts:
• Processor reads (fetches)
• Processor executes
Instruction execution
• Instruction Execution actions fall into four categories:
• Processor – Memory
• Processor – I/O
• Data Processing
• Control
• Timesharing (multitasking) is logical extension in which CPU switches jobs so frequently that users can interact
with each job while it is running, creating interactive computing
• Response time should be < 1 second
• Each user has at least one program executing in memory process
• If several jobs ready to run at the same time CPU scheduling
• If processes don’t fit in memory, swapping moves them in and out to run
• Virtual memory allows execution of processes not completely in memory
Uniprogramming