OS Chap 1 1
OS Chap 1 1
Chapter-1.1
Introduction to Operating System
nt
an intermediary between users and the computer hardware.
Basic Functions of an OS:
de
• Process Management: Handling the execution of processes, including scheduling,
creation, and termination.
• File System Management: Handling the creation, deletion, reading, and writing
As
of files.
• Security and Access Control: Protecting system resources and data from unau-
thorized access.
Uses:
e
• User Interface: Providing a user-friendly interface for interacting with the com-
puter.
1
3 SIMPLE BATCH SYSTEMS
Figure 1: Diagram
nt
• MacOS: The operating system used by Apple’s desktop and laptop computers.
Uses:
de
• Personal Use: Running software applications like word processors, browsers, and
games.
tu
• Business Use: Managing enterprise applications, databases, and network services.
Definition: Simple Batch Systems were among the earliest types of operating systems.
In these systems, jobs are collected into batches and processed sequentially. Character-
e
th
Figure 2: Diagram
istics:
• No user interaction: Jobs are executed without any input or interaction from
the user during execution.
• Job Scheduling: Jobs are queued and processed in the order they are submitted.
Example:
youtube.com/@thebcastudent 2
4 MULTI-PROGRAMMED BATCH SYSTEMS
• IBM 1401: One of the first machines to use a batch processing system.
Uses:
• Historical Context: Used in early computing when user interaction with the
system was minimal.
Popularity:
• 1960s-1970s: Batch processing systems were popular during this period when com-
puters were primarily used for large-scale computations, such as payroll processing
and scientific calculations.
nt
4 Multi-Programmed Batch Systems
Definition: In Multi-Programmed Batch Systems, multiple jobs are loaded into memory
de
and executed concurrently. The OS switches between jobs to utilize CPU efficiently.
Key Concepts:
tu
• Multiprogramming: The ability of an OS to execute more than one program
simultaneously.
• CPU Utilization: The goal is to keep the CPU as busy as possible by overlapping
As
Example:
BC
• A computer system running multiple batch jobs where, while one job is waiting for
I/O operations, another job can utilize the CPU.
Uses:
e
Popularity:
youtube.com/@thebcastudent 3
6 PERSONAL-COMPUTER SYSTEMS
Figure 3: Diagram
5 Time-Sharing Systems
nt
Definition: Time-Sharing Systems allow multiple users to use the computer simultane-
ously by allocating time slices of the CPU to each user or task. Characteristics:
• Interactive: Users interact directly with the system in real-time.
de
• Time Slices: The CPU time is divided into small time intervals, and each user/job
is allocated a time slice.
tu
Example:
• UNIX: A classic example of a time-sharing operating system.
As
Uses:
• Multi-User Environments: Used in scenarios where multiple users need to in-
BC
Popularity:
th
6 Personal-Computer Systems
Definition: Personal-Computer Systems are designed for single-user applications, such
as desktops and laptops.
Characteristics:
• Single-User Focus: Designed primarily for individual use.
youtube.com/@thebcastudent 4
7 PARALLEL SYSTEMS
nt
7 Parallel Systems
de
Definition: Parallel Systems use multiple processors to perform multiple tasks simulta-
neously. Characteristics:
tu
As
BC
Figure 4: Diagram
Example:
• Symmetric Multiprocessing (SMP): All processors share a common memory
and operate independently.
Uses:
• High-Performance Computing: Used in scientific simulations, data analysis,
and other tasks requiring significant computational power.
• Server Systems: Employed in servers to handle multiple requests concurrently,
enhancing performance.
Popularity:
• 1990s-Present: Parallel processing systems gained popularity with the increas-
ing demand for high-performance computing in fields like scientific research and
enterprise applications.
youtube.com/@thebcastudent 5
9 REAL-TIME SYSTEMS
8 Distributed Systems
Definition: Distributed Systems consist of multiple computers that work together to
achieve a common goal. These systems share resources and communicate via a network.
Characteristics:
nt
Figure 5: Diagram
de
• Resource Sharing: Resources like files, data, and processing power are shared
across the network.
• Scalability: Systems can easily scale by adding more machines to the network.
tu
• Fault Tolerance: If one system fails, others can continue to operate.
As
Example:
• Apache Hadoop: A distributed system used for processing large data sets across
clusters of computers.
BC
Uses:
• Big Data Processing: Distributed systems are used to analyze and process large
volumes of data across multiple machines.
e
9 Real-Time Systems
Definition: Real-Time Systems are designed to process data and provide output within a
strict time constraint. These systems are often used in critical applications where timing
is crucial. Characteristics:
• Deterministic Response: The system provides a predictable response time to
input stimuli.
youtube.com/@thebcastudent 6
9 REAL-TIME SYSTEMS
Figure 6: Diagram
• High Reliability: These systems are often used in life-critical applications where
failure is not an option.
Example:
• Air Traffic Control Systems: Systems that require real-time processing to man-
nt
age and monitor air traffic safely.
Uses:
de
• Medical Devices: Real-time systems are used in devices like pacemakers, where
immediate and reliable responses are essential.
ware and software resources and provides services for computer programs. Its main
th
functions include:
• Process Management: Scheduling, creating, and terminating processes.
youtube.com/@thebcastudent 7
9 REAL-TIME SYSTEMS
Question 3: Describe the differences between Simple Batch Systems and Time-
Sharing Systems.
Answer:
• Simple Batch Systems: Jobs are processed in batches with no user interaction
during execution. Examples include early IBM systems.
• Time-Sharing Systems: Multiple users can interact with the system simultane-
ously, with the CPU time shared among them. Examples include UNIX.
nt
Answer: Distributed Systems offer several advantages:
de
• Resource Sharing: Resources such as data and processing power are shared across
the network.
tu
• Fault Tolerance: If one system fails, others can continue to operate, ensuring
reliability.
As
Question 5: Define Real-Time Systems and provide examples of their applications.
Answer: Real-Time Systems are designed to process data and provide output within
a strict time constraint. They are used in critical applications where timing is crucial.
Examples include:
BC
• Industrial Automation
th
1. File Management
2. Web Browsing
3. Email Management
4. Image Editing
youtube.com/@thebcastudent 8
9 REAL-TIME SYSTEMS
simultaneously.
Question 3: Which system is designed to allow multiple users to interact with a
computer at the same time?
2. Time-Sharing System
nt
3. Real-Time System
4. Parallel System
de
Question 4: What is the main advantage of using Distributed Systems?
tu
1. Reduced costs
4. Simplicity in design
BC
2. Pacemaker
th
3. Web Browser
youtube.com/@thebcastudent 9