Unit1 Part 1
Unit1 Part 1
But shared computer such as mainframe or minicomputer must keep all users
happy
Users of dedicate systems such as workstations have dedicated resources but
frequently use shared resources from servers
Handheld computers are resource poor, optimized for usability and battery life
Some computers have little or no user interface, such as embedded computers
in devices and automobiles
Operating System Definition
OS is a resource allocator
◦ Manages all resources
◦ Decides between conflicting requests for efficient and fair resource use
OS is a control program
◦ Controls execution of programs to prevent errors and improper use of the
computer
Operating System Definition
(Cont.)
No universally accepted definition
“The one program running at all times on the computer” is the kernel.
Everything else is either a system program (ships with the operating
system) or an application program.
Computer Startup
bootstrap program is loaded at power-up or reboot
◦ Typically stored in ROM or EPROM, generally known as firmware
◦ Initializes all aspects of system
◦ Loads operating system kernel and starts execution
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
Device controller informs CPU that it has finished its operation by causing
an interrupt
Storage Structure
Main memory – only large storage media that the CPU can access directly
◦ Random access
◦ Typically volatile
File-System management
◦ Files usually organized into directories
◦ Access control on most systems to determine who can access what
◦ OS activities include
◦ Creating and deleting files and directories
◦ Primitives to manipulate files and dirs
◦ Mapping files onto secondary storage
◦ Backup files onto stable (non-volatile) storage media
Mass-Storage Management
Usually disks used to store data that does not fit in main memory or
data that must be kept for a “long” period of time
Proper management is of central importance
Entire speed of computer operation hinges on disk subsystem and its
algorithms
OS activities
◦ Free-space management
◦ Storage allocation
◦ Disk scheduling