Unit 1
Unit 1
Operating
Management,
Security and Protection
System Views of OS: User View, System View
(08 Marks)
Batch Operating System, Multi Programmed,
Time Shared OS, Multiprocessor Systems,
Distributed Systems, Real Time Systems,
Mobile OS (Android, iOS)
1.3 Command Line based OS- DOS, UNIX
GUI based OS- WINDOWS, LINUX
1
Types of Softwares
• Two Types of Softwares are:
1. Application Softwares.
2. System Softwares:
• System software is general
purpose software which is used
to operate computer hardware.
It provides platform to run
application softwares.
• Application software is specific
purpose software which is used
by user for performing specific
task.
2
Operating system
3
Operating system
• Definition
• An operating system is a program that acts as an interface
between the user and the computer hardware and controls the
execution of all kinds of programs.
• Every desktop computer, tablet, and smartphone includes an
operating system that provides basic functionality for the
device.
• Eg. MS-DOS,MAC OS/2,Unix, Sun Solaris, Linux etc.
4
Operating system
• OS is a bridge between computer hardware and user.
• It is comprised of system software, or the fundamental files your
computer needs to boot up and function.
• An operating system is a software which performs all the basic
tasks like file management, memory management, process
management, handling input and output, and controlling
peripheral devices such as disk drives and printers.
5
Components of Computer System
1. Hardware :
•Input/Output Devices,
•CPU,
•Storage Devices, Networking Devices etc.
•2. Operating System
•3. Application Programs
•4. Users
6
Operating system
7
Operations / Functions of Operating system
8
Operations / Functions of Operating system
Process:
9
Operations / Functions of Operating system
2. Program Management (Process Management):
•OS performs program management or process management and is
responsible for the following operations:
a. To provide control access to shared resources like file, memory, I/O
and CPU.
b. Control the execution of user applications
c. Creation, execution and deletion of system processes as well as
user’s processes.
d. Resume a process or cancel it.
e. Scheduling of a process
f. Synchronization, Interprocess communication and deadlock
handling for process. 10
Operations / Functions of Operating system
3. Security and Protection -
• The operating system uses password protection to protect user data
and similar other techniques. It also prevents unauthorized access to
programs and user data.
1. Resource management
2. Process management
4. Data management:
5. Task management:
13
Views of Operating Systems
14
1. User View
18
2. System View
• The OS manages the hardware resources of a computer system.
• Resources include:
processors,
memory,
disks and other storage devices,
network interfaces,
I/O devices such as keyboards,
mice and monitors, and so on.
• The operating system allocates resources among running system programs.
• It controls the sharing of resources among system programs.
• The OS itself also uses resources, which it must share with application programs.
• OS works as a controller to keep control of various activities happening in the
system.
19
GENERATIONS OF COMPUTER/
EVOLUTION of OS
Generation Year Electronic Types of OS and
, devices used devices
1st 1940-1955 Vacuum tubes, Punch Plug boards
card, paper tape
2nd 1955-1965 Transistors Batch system
3rd 1965-1980 Integrated Circuit Multiprogramming
(IC) OS
4th 1980 - Present Microprocessors DOS, Unix,
PC, Laptop
5th 1990- Present parallel processing and Windows, Linux
superconductors AI (Robot)
20
GENERATIONS OF COMPUTER
1st Generation:
1940-1955
Speed in milliseconds
1955-1965
Main electronic component is transistor
Used assembly level language
Punch card used as input device
Speed in microseconds
Less heat, FORTAN and COBOL used
IBM 1401, IBM 1620
22
GENERATIONS OF COMPUTER
3rd Generation:
1965-1975
Main electronic component is Integrated Circuit (IC)
Used assembly level language
Keyboard and Mouse used as input device
Speed in Nano seconds
IBM 360, IBM 370
23
GENERATIONS OF COMPUTER
4th Generation:
1975-1990
Networking, GUI
Apple, IBM PC
24
GENERATIONS OF COMPUTER
5th Generation
1990 onwards
Artificial intelligence
Expert system
Nano technology
25
Types Of operating system
1. Batch Processing Operating System
2. Real Time Operating System
3. Multiprogramming Operating System
4. Multiprocessor Operating System
5. Distributed Operating System
6. Time Shared Operating System
7. Mobile Operating System
26
Batch OS
27
Batch OS
Program and Input data is called job
User do not interact with computer directly. It will submit job to software
which reside in memory called as monitor.
Functions of monitor:
Accepting jobs from user
Set up for first job
At end of job, terminate process and transfer to next job
28
At end of batch, terminate batch and transfer to new batch
Batch OS
Advantages: Disadvantages:
29
Multiprogramming OS
Multiple number of programs run simultaneously but one at a time.
30
Multiprogrammed os
Advantages:
Throughput increased
Response time is good
Increase Performance of CPU
Disadvantages:
Memory management required
Maintenance is required
Tracking of jobs is required
31
Real Time OS (RTOS)
A system must produce output for given input within specific given
amount of time
Types:
1. Hard RTOS: Response time is absolute value and task must finish
within deadline.
2. Soft RTOS: Response time is average and task may finish within
deadline or it may take more time.
32
Real Time System
Applications:
Medical Applications
Virtual Reality
33
Types of Real Time System
1. Hard real-time system
Guarantees critical task completion on 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. Advanced OS features are absent (e.g. virtual memory is absent).
Examples:
• Satellite application,
• Flight Control System,
• Missile Guidance Systems.
• Weapons Defense System.
• Medical System.
• Inkjet printer system.
• Railway signaling system.
• Air traffic control systems.
• Nuclear reactor control systems. 34
Types of Real Time System
2. Soft real-time system
Less restrictive.
All tasks in that system must execute on time.
A critical real time task gets priority over other tasks and it retains its priority until it
completes. Limited utility in industrial control of robotics
Examples –
• Audio and Video system,
• Set-top boxes,
• Weather Monitoring Systems.,
• Electronic games,
• Multimedia system,
• Web browsing.
35
Multiprocessor System
There are two or more CPUs within single computer system.
Throughput increased
Reliability increased
Disadvantages:
Complex in design
Throughput increased
Reliability increased
Disadvantages:
Complex in design
Networking required
39
Distributed OS
40
Time Sharing OS
A time sharing system allows many users to share the
computer resources simultaneously.
Time sharing refers to the allocation of computer resources
in time slots to several programs simultaneously.
Equal time slots are provided to user for execution of
programs which also leads to the context switching, in which
process shifts control from one to another
In case any process does not complete its working within
time slot then extra time slot will not be given to it.
For example- you are running a process with a time slot of
10 seconds and in case process does not complete in 10
second and requires 1 extra second then it will be executed in
next execution cycle but time slot will not be extended.
Short period of time during that a user gets attention of the
CPU is known as a time slice or a time quantum.
41
Time Sharing OS
42
Mobile OS
Android
IOS
Windows
Features:
User friendly
Plug and Play Compatibility
Online Compatibility
Multitasking and multiprogramming
Easy updation
43
Command Line OS
DOS –Single User
UNIX- Multi User
Features:
Single Tasking
Commands are to be used for each operation
Not user friendly
No GUI
44
GUI Based OS
Windows
Linux
Features:
Multi Tasking
User friendly
GUI Based
Popular
45