Notes FOS
Notes FOS
SEMESTER – 3
221601304
2 PROCESS MANAGEMENT 20 %
4 MEMORY MANAGEMENT 20 %
–Publisher : - Oxford
–Author : - Naresh Chauhan
3
UNIT -1 INTRODUCTION TO OS
Course Outline
●
Defination of Operating System
●
Need for Operating System
●
Advantages and disadvantages of OS
●
Types of Operating System
4
UNIT -1 Introduction
It is a software designed to
●
6
UNIT -1 OS Defination
●
“A software that acts as an interface between the users and
hardwar of the computer system.”
●
“A software that provides a working environment for the
users's applications.”
●
“A resource manager that manages the resources needed
for all the applications in the background.”
●
“A software in which all common fuctions required to work on
the computer system have been put together.”
7
UNIT -1 Need for Os
●
Who Schedules tasks
for the CPU to
execution?
●
Who manage printing
on LAN Printer?
●
Who protect the
user's area from
unauthorized access.
8
UNIT -1 Need for Os
●
While saving and running a program in file, which part of
the computer system that allocates memory to the file?
●
How are the files as a logical concept mapped to the
physical disk?
We can open many windows at a time, Who manage it?
●
9
UNIT -1 Need for Os
wasted cycles.
Provides information protection.
●
10
Services provided By OS
Following are few common services provided by operating
systems-
It provides programs, an environment to execute.
●
●
It provides users, services to execute the programs in a
convenient manner.
Helps in I/O operations
●
Communication
●
Error Detection
●
●
No Coding Lines − After the invention of GUI the operating
systems are allowed to access hardware without writing
programs.
●
Safeguard of Data − We are able to store more information
on the computers and are able to access that information with
the help of OS. OS is maintaining safely and securely
managing the data.
●
Multitasking − An operating system can handle more than
one task simultaneously.
Chitresha Jain 14
Disadvantages of OS
●
Expensive − When compared to other platforms like Linux,
some operating systems are costly. Users can use a free OS
but generally they are a bit more difficult to run than others.
Microsoft Windows operating system with GUI and other in-
built features carry a costly price.
●
System Failure − The whole system will be affected if the
central operating system fails, and the computer will not work.
OS is the heart of the number and If the central system
crashes, the whole communication will be halted, and there
will be no further processing of data.
Disadvantages of OS
●
Highly Complex − Operating systems are highly complex, and the
language which used to establish these OS are not clear and well
defined.
●
Virus Threats − Threats to the operating systems are higher as
they are open to such virus attacks. Many users download malicious
software packages on their system which halts the functioning of the
OS and slows it down.
●
Fragmentation − Fragmentation in the computer is a state when
storage memory breaks into pieces. Internal fragmentation occurs
when the method of process is larger than the memory size. External
fragmentation occurs when the method or process is eliminated.
Types of Operating System
Chitresha Jain 18
UNIT -1 Batch Processing Systems
●
The batch prcessing system was developed as a result of
more set-up time for execution of different types of user
programs.
Jobs can be combined in a batch and sent for execution
●
Chitresha Jain 19
UNIT -1 Batch Processing Systems
Chitresha Jain 20
UNIT -1 Batch Processing Systems
Advantages -
●
The main advantage of batch processing OS is it increase the CPU
utilization.
●
Multiple users can share the batch systems.
●
The idle time for batch system is very less.
●
It is easy to manage large work repeatedly in batch systems.
Chitresha Jain 21
Unit-1 Batch OS
●
Disadvantage of Batch OS-
–Computer operators must be trained for using batch
systems.
–Batch systems are hard to debug.
–The other jobs will have to wait for an unknown time if any
job fails.
–Examples of Batch based Operating System:
–Payroll System, Bank Statements, Printer Job etc.
Chitresha Jain 22
UNIT -1 Multi – Programming Systems
●
When a program is being performed, it is known as a
"Task", "Process", and "Job".
●
Multi Programming means placing several programs or
jobs in the main memory at a time.
●
It means that now several jobs are ready to be executed,
●
But CPU can execute only one job at time.
●
How Multipal job can execute ?
–It can be achived with idea of switching between the jobs.
Chitresha Jain 23
UNIT -1 Multi – Programming Systems
●
There can be two type of Instruction in a programm
–CPU bound
–I/O boud
●
CPU bound instruction means when CPU has an
instruction for processing or computation.
●
I/o bound instruction means there is a request to an input
or output device to read or write.
Chitresha Jain 24
UNIT -1 Multi – Programming Systems
●
At the time of I/O instruction, CPU remain Ideal.
●
Since due to multi-programming concept there are many
jobs ready in the main memory, the CPU can switch to
second job while the first is waiting for an I/O.
If the second job also reaches an I/O bound instruction, then
●
Chitresha Jain 25
UNIT -1 Multi – Programming Systems
Multi -
Programming Exe P1 Exe P2 Exe P1 Exe P2 Exe P1
Chitresha Jain 26
UNIT -1 Multi – Programming Systems
●
The major benefits of multi programming system are
–Less execution time
–Increased utilization of memory
–Increased throughput
●
(Throughput = number of jobs completed per unit time)
●
Throughput is increased if degree of multi programming is
increase.
Chitresha Jain 27
UNIT -1 Multi – User Time – Sharing Systems
●
Batch and Multi-programmed systems do not provide
immediate response to the user.
●
In Multi-user time sharing system desing, where in multiple
users with their terminals (having no processors) were
connected to a computer system (with processor) to
perform their jobs.
In this arrangement, the jobs of multiple interactive users
●
Chitresha Jain 28
UNIT -1 Multi – User Time – Sharing Systems
●
It was also known as time sharing as CPU time of main
computer system was shared among multiple users to
execute their jobs.
●
Multiuser time sharing system are the systems where
multiple interactive users connected through their dumb
terminals access the main computer system to perform
their jobs.
Chitresha Jain 29
UNIT -1 Multi – User Time – Sharing Systems
Chitresha Jain 30
UNIT -1 Multi – User Time – Sharing Systems
●
The CPU switches from one job to another job on
regular intervals to have a fair distribution of its time for the
users.
●
The user jobs are scheduled in such a manner that each
job gets equal chance for computation.
●
Chitresha Jain 31
UNIT -1 Multi – User Time – Sharing Systems
●
The Major benefits of multiuser time sharing systems are:
–Multiuser facility
–Improved Response time
–Improved Debugging and Productivity
●
Chitresha Jain 32
UNIT -1 Multi Tasking Systems
●
Window was developed for personal computers such that a
single users working on a PC can open multiple
windows.
●
In this way user is able to open many windows or tasks
and work on them. This is known as multi – tasking.
●
With the availability of high speed of processor, the user has
the illusion of working in parallel on multiple tasks.
But it is the time – sharing scheduling techique which has
●
made it possible.
●
Chitresha Jain 33
UNIT -1 Multi Tasking Systems
Chitresha Jain 34
UNIT -1 Network Operating System
●
Network operating system is the earliest form of operating
system that coordinates the activities on a network
system.
●
In a network each node has its own local operating sytem.
A user sitting on a node may want to work as on the local
●
Chitresha Jain 35
UNIT -1 Network Operating System
●
These systems run on a server and provide the capability to
manage data, users, groups, security, applications, and other
networking functions. These type of operating systems allow
shared access of files, printers, security, applications, and other
networking functions over a small private network.
●
One more important aspect of Network Operating Systems is
that all the users are well aware of the underlying configuration,
of all other users within the network, their individual
connections etc. and that’s why these computers are popularly
known as tightly coupled systems.
●
Chitresha Jain 36
UNIT -1 Network Operating System
Chitresha Jain 37
Advantages of Network OS
●
Highly stable centralized servers.
●
Security concerns are handled through servers.
●
New technologies and hardware upgradation are easily
integrated to the system.
●
Server access are possible remotely from different
locations and types of systems.
Chitresha Jain 38
Disadvantages of Network OS
●
Servers are costly
●
User has to depend on central location for most operations
●
Maintenance and updates are required regularly.
●
Examples of Network Operating System are:
●
Microsoft Windows Server 2003, Microsoft Windows Server 2008,
UNIX, Linux, Mac OS X, Novell NetWare, and BSD etc.
●
Chitresha Jain 39
UNIT -1 Multi - Processor Systems
●
With the advance in the technology, their was a desire for
parallel processing with the help of more than one
processor instead of only one.
●
Multi processing systems contain more than one
processor and share other resources.
●
These types of system is very useful for engineering and
scientific application.
●
Other category of mutiprocessing environment is mission –
critical and real – time system.
●
●
Chitresha Jain 40
UNIT -1 Multi - Processor Systems
●
In Multi Processor system environment there are multiple
processors, all of them should be busy.
●
The processes should be distributed on various
processors for parallel computation.
●
The process scheduling is another challenge as it is
needed to schedule multiple processes on multiple processors.
●
The coordination of various processes should also be
taken care of different inter-process communication and
synchronization techniques are required.
●
●
Chitresha Jain 41
UNIT -1 Multi - Processor Systems
Chitresha Jain 42
UNIT -1 Distributed Operating Systems
●
Distributed system are also multi – processor systems but with the
following difference:
–Distributed system works in Wide Area Network (WAN)
–Each node in a distributed system is a complete computer having
full set of peripherals including OS.
–The users of a distributed system have an impression that they
are working on a single machine.
●
Resource sharing is the main motive behind distributed systems.
●
This OS providing distributed computing facility employ almost
same communication method and protocols as in network OS.
●
●
Chitresha Jain 43
UNIT -1 Distributed Operating Systems
Chitresha
● Jain 44
UNIT -1 Distributed Operating Systems
Chitresha Jain 45
Advantages of Distributed OS
●
Failure of one will not affect the other network communication,
as all systems are independent from each other
●
Electronic mail increases the data exchange speed
●
Since resources are being shared, computation is highly fast and
durable
●
Load on host computer reduces
●
These systems are easily scalable as many systems can be easily
added to the network
●
Delay in data processing reduces
●
Chitresha Jain 46
Disadvantages of Distributed OS
●
Failure of the main network will stop the entire
communication
To establish distributed systems the language
●
Chitresha Jain 47
UNIT -1 Real Time Operating System (RTOS)
●
A RTOS response to a user request has to be immediate
or within a fixed time frame otherwise the application will
fail. This is known as real-time OS.
●
This type of processing is largely useful in defence
application which are mission specific.
●
It there is no timely response, there might be loss of
equipment and even life.
●
Many defence applicaions like guided missile system, air
traffic control sytems etc.
Chitresha Jain 48
UNIT -1 Real Time Operating System (RTOS)
●
Real time systems are two types:
–Hard Real-Time
–Soft Real – Time
●
The system that have hard deadlines and must be met are
called Hard Real-Time system.
–All Defence applications are of the this type.
There is another type known as soft real-time system where
●
Chitresha Jain 49
UNIT -1 Real Time Operating System (RTOS)
●
Characteristic of RTOS
–The RTOS schedules all tasks according to the deadline
information and ensure that all deadline are met.
–Itmust have Fault tolerance. In case of failure of any
software/hardware system should need to work continue.
●
Chitresha Jain 50
Advantages of Real Time OS
●
Maximum Consumption: Maximum utilization of devices and system,thus more
output from all the resources
●
Task Shifting: Time assigned for shifting tasks in these systems are very less. For
example in older systems it takes about 10 micro seconds in shifting one task to
another and in latest systems it takes 3 micro seconds.
●
Focus on Application: Focus on running applications and less importance to
applications which are in queue.
●
Real time operating system in embedded system: Since size of programs are
small, RTOS can also be used in embedded systems like in transport and others.
Error Free: These types of systems are error free.
●
Chitresha Jain 51
Disadvantages of RTOS
●
Limited Tasks: Very few tasks run at the same time and their
concentration is very less on few applications to avoid errors.
●
Use heavy system resources: Sometimes the system resources are
not so good and they are expensive as well.
●
Complex Algorithms: The algorithms are very complex and difficult
for the designer to write on.
●
Device driver and interrupt signals: It needs specific device drivers
and interrupt signals to response earliest to interrupts.
●
Thread Priority: It is not good to set thread priority as these
systems are very less prone to switching tasks.
Chitresha Jain 52
UNIT -1 Embedded Operating System
●
Embedded system are specialized systems that tend to have very
specific tasks.
●
Embedded system also have operating systems but they are not
generalized ones.
●
The user uses the devices without any awareness of Operating
system.
●
Embedded operating systems are there to perform all the basic
functionalities in these systems like initialization, task manaagement,
memory management etc. With little or on user interface.
●
Washing Machinnes, Televisions and cars are other examples where
these systems are being used.
Chitresha Jain 53
UNIT -1 Embedded Operating System
●
It is an operating system but not in the same structure as
found in general purpose computer systems.
Washing Machines, Televisions and cars are other examples
●
Chitresha Jain 54
UNIT -1 Embedded Operating System
●
Challenges for the designers of the OS for Mobile Devices
are -
All the mobile devices have a very small memery. So the
●
Chitresha Jain 55
Types of Operating System
Chitresha Jain 56
Types of Operating System
Types of Operating Features Example
System
Real – Time Systems Used to handle time bound PSOS, VxWorks, RTLinux
responses to the
application
Chitresha Jain 58