CSC207 Ch 1 Introduction to OS
Chapter 1: Introduction
1.1 What Operating Systems Do?
Operating systems serve as intermediaries between users and computer hardware.
They facilitate the execution of user programs and simplify problem-solving.
Key functions:
Memory management
Process management
Security management
1.2 Computer-System Organization
Systems are divided into key components:
Hardware: Provides basic computing resources (CPU, memory, I/O devices).
Operating System: Manages hardware resources and coordinates applications' use.
Application Programs: Define resource usage for problem-solving (e.g., word processors, games).
Users: Include individuals and other computers interacting with the system.
1.3 Objectives
Understand computer system organization.
Explore major operating system components.
Overview of different computing environments.
Examine open-source operating systems.
1.4 What is an Operating System?
An OS is a program that acts as an intermediary between users and hardware.
It manages resources and aims to make systems convenient and efficient.
Goals:
Execute user programs
Make systems user-friendly
Efficiently utilize hardware resources.
1.5 Types of OS
Operating systems can be classified into several types:
Batch OS
Time sharing OS
Distributed OS
Network OS
Real-time OS
Multiprogramming/processing/tasking OS.
1.6 Computer System Structure
A computer system comprises:
Hardware: Basic resources.
Operating system: Controls hardware access.
Application programs: User oriented.
Users: Individuals/machines.
1.7 Four Components of a Computer System
Hardware, OS, application programs, and users together form a cohesive unit.
Without an OS, users must manually control hardware instructions.
1.8 What Operating Systems Control
Operating systems oversee hardware coordination among applications and users.
They are akin to governments, providing an environment where others can function.
The OS's role can be viewed from:
User perspective
System perspective.
1.9 User View of OS
Single-user systems: Designed for individual resource usage, enhancing user experience.
Multi-user systems: Share resources among users; the OS aims to optimize resource utility.
Handheld devices: Touch screen interfaces, optimized for usability and battery life.
Embedded systems: Operate automatically, often offering limited user interface.
1.11 System View of OS
OS acts as a resource allocator managing all resources and usage conflicts.
It controls program execution to prevent errors.
The OS fosters a direct connection with hardware.
1.12 Definition of Operating System
OS facilitates the establishment of a usable computing system.
Fundamental goal: execute user programs, simplifying user problem-solving.
Application programs require common operations that the OS consolidates.
1.13 OS Components
No singular definition; typically, an OS includes:
The kernel (core OS managing all resources).
System programs (supporting OS functions).
Application programs (independent of the OS operation).
1.14 Features of OS
Mobile devices have increased OS features and complexity due to varied functionalities.
Examples: Apple’s iOS and Google’s Android include kernels and middleware for applications.
1.16 Modern Computer System Operation
Modern systems consist of CPUs and device controllers connected via a common bus.
1.17 Computer Startup
Bootstrap Program: Loaded during power-up or reboot, initializing system and loading the OS kernel.
1.18 Computer-System Operation
After kernel loading, the system provides services to users.
UNIX's first system process,
init, initiates the execution of daemons, signifying that the system is ready for events.
1.19 Computer-System Architecture
Systems may contain single/multiple processors with various specialized functions.
Multiprocessor systems lead to increased throughput and reliability.
1.21 Symmetric Multiprocessing
Symmetric: All processors perform all tasks.
Asymmetric: Each processor has specific tasks assigned.
1.22 Multicore Systems
Most CPUs now feature multiple cores, increasing efficiency through on-chip communication.
Enhances power efficiency, vital for portable devices.
1.24 Clustered Systems
Comprise systems sharing storage; provide high availability.
Types include asymmetric (one hot standby) and symmetric (multiple active nodes).
1.26 Operating-System Structure
Multiprogramming: Keeps CPU busy by organizing jobs in memory.
Batch Systems: Execute jobs sequentially, minimizing idle CPU.
Time Sharing: Interactive computing with quick response times; multitasking is used.
1.28 Timesharing Systems
Allows execution of multiple jobs by rapidly switching among them.
Users can interact as processes execute in memory.
1.29 Operating-System Operations
Operating systems use protection mechanisms and operate in two modes: user mode and kernel mode.
1.31 Timer
A hardware device used to prevent infinite loops by interrupting execution after set periods.
1.32 Protection and Security
Protects resource access and offers security against attacks.
Identity management is critical for determining user access.
1.33 Operating System Software
Comprises several subsystem managers including memory, processor, device, and file managers, along with the network manager.
1.36 Memory Management
Manages main memory, ensuring allocation and tracking usage across processes.
1.37 Processor Management
Allocates CPU resources and manages process execution.
1.39 Device Management
Monitors resources and allocates devices efficiently.
1.40 File Management
Keeps track of files and enforces access restrictions for users and programs.
1.41 Network Manager
Essential for systems with networking capabilities, allowing resource sharing while managing user access.
1.45 Types of Operating Systems
Categories include:
Batch systems
Interactive systems
Real-time systems
Hybrid systems
Embedded systems.
1.54 Real-Time Systems
Critical for applications requiring timely responses, such as in aircraft control and medical devices.
1.56 Hybrid Systems
Include both batch and interactive qualities, providing responsiveness during low demand.
1.59 Embedded Systems
Found within products enhancing their functionality, requiring specific program capabilities.
1.60 Computing Environments
Includes various contexts such as traditional computing, mobile, distributed, and embedded systems.
1.62 Virtualization
Enables running applications across different operating systems in isolated environments.
1.67 Virtual Machine (VM) Advantages/Disadvantages
Advantages: Resource protection and flexibility in OS experimentation.
Disadvantages: Implementation challenges and reduced efficiency compared to physical machines.
1.68 Example: Java Virtual Machine (JVM)
Provides an environment for executing Java programs, compiling bytecode into machine language.
1.70 Open-Source Operating Systems
OSs available in source-code format, promoting user control and modification.
Examples include GNU/Linux and BSD UNIX.
Conclusion
Understanding the structure, functionality, and types of operating systems is crucial for efficient computer use and management.