OS Lecture 1
OS Lecture 1
OS Lecture 1
System
LECTURE-1
Outline
Introduction
Architecture of OS
Functions of OS
Objectives of OS
Types of OS
3
Introduction
Operating System can be defined as an interface between user and the hardware.
It provides an environment to the user so that, the user can perform its task in
convenient and efficient way.
Some popular Operating Systems include Linux Operating System, Windows Operating System,
Unix, MacOS, VMS, OS/400, AIX, z/OS, Android etc.
4
Architecture
We can draw a generic architecture diagram of an Operating System which is
as follows:
Functions of the Operating System
Resource Management: The operating system manages and allocates memory, CPU time, and
other hardware resources among the various programs and processes running on the computer.
Process Management: The operating system is responsible for starting, stopping, and managing
processes and programs. It also controls the scheduling of processes and allocates resources to
them.
Memory Management: The operating system manages the computer’s primary memory and
provides mechanisms for optimizing memory usage.
File Management: The operating system is responsible for organizing and managing the file
system, including the creation, deletion, and manipulation of files and directories.
Device Management: The operating system manages input/output devices such as printers,
keyboards, mice, and displays. It provides the necessary drivers and interfaces to enable
communication between the devices and the computer.
Backup and Recovery: The operating system provides mechanisms for backing up data and
recovering it in case of system failures, errors, or disasters.
Objectives of Operating Systems
Convenient to use: One of the objectives is to make the computer system more
convenient to use in an efficient manner.
User Friendly: To make the computer system more interactive with a more
convenient interface for the users.
Easy Access: To provide easy access to users for using resources by acting as an
intermediary between the hardware and its users.
Controls and Monitoring: By keeping track of who is using which resource, granting
resource requests, and mediating conflicting requests from different programs and
users.
7
Advantages of Batch OS
High throughput: Batch processing operating systems can process a large number of jobs quickly,
allowing for high throughput and fast turnaround times.
Reduced errors: As batch processing operating systems do not require user intervention, they can
help reduce errors that may occur during manual job processing.
Simplified job management: Batch processing operating systems simplify job management by
automating job submission, scheduling, and execution.
Cost-effective: Batch processing operating systems can be cost-effective, as they allow for the
efficient use of resources and can help reduce errors and processing time.
Scalability: Batch processing operating systems can easily handle a large number of jobs, making
them scalable for large organizations that require high-volume data processing.
10
Disadvantages of Batch OS
Limited functionality: Batch systems are designed for simple tasks, not for more
complex tasks. This can make them difficult to use for certain tasks, such as managing
files or software.
Security issues: Because batch systems are not typically used for day-to-day tasks, they
may not be as secure as more common operating systems. This can lead to security risks
if the system is used by people who should not have access to it.
Interruptions Batch systems can be interrupted frequently, which can lead to missed
deadlines or mistakes.
Inefficiency: Batch systems are often slow and difficult to use, which can lead to
inefficiency in the workplace.
11
Advantages of
Multiprogramming OS
Throughout the system, it increased as the CPU always had one program
to execute.
Disadvantages of
Multiprogramming OS
Multiprogramming systems provide an environment in which
various systems resources are used efficiently, but they do not
provide any user interaction with the computer system.
14
Multitasking OS
Multi tasking operating systems
allow multiple users to perform
multiple tasks at the same
time. The allocation of system
resources such as
input/output devices, CPU and
memory among processes can
be easily managed by multi-
tasking operating system.
15
Advantages of Multitasking OS
This operating system is more suited to supporting multiple
users simultaneously.
Disadvantages of Multitasking OS
The multiple processors are busier at the same time to complete
any task in a multitasking environment, so the CPU generates more
heat.
17
Multiprocessing OS
In Multiprocessing, Parallel computing is achieved. There are more than one
processors present in the system which can execute more than one process at
the same time. This will increase the throughput of the system.
Multiprocessing OS
19
Advantages of Multiprocessing OS
Reliability- If one processor fails in a multiprocessor system, the
other processors can pick up the slack and continue to function.
Cost saving.
20
Disadvantages of Multiprocessing OS
Multiprocessing operating systems have a more complex architecture
when compared to a single processor OS.
Types of RTOS
23
For example, a robot is hired to weld a car body. If the robot welds
too early or too late, the car cannot be sold, so it is a hard real-time
system that requires complete car welding by the robot hardly on
time., scientific experiments, medical imaging systems, industrial
control systems, weapon systems, robots, air traffic control systems,
etc.
24