Unit 1
Unit 1
Learning Objectives
• Definition of OS
• Goals of OS
• Various Computing systems
• Components of OS
• Services offered by OS
• System calls
• System programs
Components of a Computer
System
• Hardware
• System programs
• Application programs
• Operating system
• Users
Use Use Use Use
r1 r1 r1 … r1
• Client-server systems
• Peer-to-peer systems.
Structure of Client-Server
Clustered Systems
• Clustering allows two or more systems to
share storage.
• Provides high reliability.
• Asymmetric clustering: one server runs the
application while other servers standby.
• Symmetric clustering: all N hosts are
running the application.
Real-Time Systems
• Well-defined fixed-time constraints.
• Used in a dedicated application such as
controlling scientific experiments, medical
imaging systems, industrial control systems,
and some display systems.
Types of Real-Time Systems
• Hard real-time:
– Secondary storage limited or absent, data stored in
short term memory, or read-only memory (ROM)
– Conflicts with time-sharing systems, not supported by
general-purpose operating systems.
• Soft real-time
– Limited utility in industrial control of robotics
– Useful in applications (multimedia, virtual reality)
requiring advanced operating-system features
Handheld Systems
• Personal Digital Assistants (PDAs)
• Cellular telephones
• Issues:
– Limited memory
– Slow processors
– Small display screens.
System Components
• Process Management
• Main Memory Management
• File Management
• I/O System Management
• Secondary Management
• Networking
• Protection System
• Command-Interpreter System
Process Management
• A process is a program in execution.
• A process needs following resources, to
accomplish its task.
– CPU time
– Memory
– Files
– I/O devices,
Activities in connection with
Process management
• Process creation and deletion
• Process suspension and resumption.
• Provision of mechanisms for:
– process synchronization
– process communication
Main-Memory Management
• Memory is a large array of words or bytes,
each with its own address.
• Main memory is a volatile storage device.
It loses its contents in the case of system
failure.
Activities in connection with
Main-Memory Management
• Keep track of which parts of memory are
currently being used and by whom.
• Decide which processes to load when
memory space becomes available.
• Allocate and de-allocate memory space as
needed.
File Management
• A file is a collection of related information
defined by its creator.
• In general, files represent programs (both
source and object forms) and data.
Activities in connection with
File Management