L3 Types OS
L3 Types OS
In early days, computer work was given on punch cards and then these punch cards
behave as input to the computer.
These jobs or batch jobs were then executed by the computer one by one. So that
computers were called as batch computers or batch systems.
The work done by batch systems are in parts i.e. one job is processed then another
job in the queue is processed and so on.
The various jobs of the users are collected in a queue. This process is known as
Spooling (Simultaneous Peripheral Operations On Line).
Memory Layout for a Simple
Batch System
OS
User
Program
Area
Batch Processing system
Batch operating system
Advantages -
• Repeated jobs are done fast in batch systems without user interaction.
• You don’t need special hardware and system support to input data in batch systems.
• Best for large organizations but small organizations can also benefit from it.
Disadvantages -
• Lack of interaction between the user and job.
• CPU is often idle, because the speeds of the mechanical I/O devices is slower than
CPU.
• Difficult to provide the desired priority.
In this, several processes are kept in memory (set of jobs are kept in Job Pool) & CPU
execute all these processes concurrently.
When one process start performing I/O operations , the CPU is allocated to another user
process in the main memory that is ready to use the CPU.
Advantages –
• It increases CPU utilization.
• It increases throughput also by utilizing idle time of CPU for running other
programs that are already present in main memory.
• It lowers the Response time by recognizing the priority of a job as it enters the
system & by processing jobs on a priority basis.
Disadvantages -
• It is fairly sophisticated and more complex.
• A multiprogramming operating system must keep track of all kinds of jobs it is
concurrently running.
Multitasking and Time-sharing
operating systems
• Time-sharing or Multitasking is a logical extension of
multiprogramming.
• Processor's time which is shared among multiple users simultaneously is termed as time-
sharing.
• It refers to term where multiple jobs are executed by the CPU simultaneously by
switching between them.
• A time sharing operating system is that in which each task is given some time to execute
and all tasks are given time so that all processes run seamlessly without any problem.
• Suppose there are many users attached to a single system then each user has given time
of CPU.
• No user can feel to have trouble in using the system
Multitasking and
Time-sharing operating systems
Multitasking and Time-sharing
operating systems
Advantages –
• Provide advantage of quick response.
• Reduces CPU idle time.
Disadvantages -
• Problem of reliability.
• Security and Integrity of user programs and data is at risk.
• It consumes much resources so it need special operating systems.
• Switching between tasks becomes overhead sometimes.
Multiprocessing systems
• Multiprocessing is the use of two or more central processing units (CPUs)
within a single computer system.
• The term also refers to the ability of a system to support more than one
processor and/or the ability to allocate tasks between them.
Advantage -
1.Increased throughput
2.Economy of scale
3. Increased reliability
Disadvantage -
1) If one processor fails then it will affect in the speed
2) Multiprocessor systems are expensive
3) Large main memory required.
•
Symmetric Multiprocessor (SMP) –
In this, each CPU runs an identical copy of OS and can communicate as needed.
Data processing jobs are distributed among the processors accordingly to which
one can perform each job most efficiently.
Processors in a distributed system may vary in size and function. These processors
are referred as sites, nodes, computers and so on.
Distributed systems
Advantages –
• Speedup the exchange of data with one another via electronic mail.
• Reduction of the load on the host computer.
• Reliability (fault tolerance) - if some of the machines crash, the system can survive.
• Sharing of data/resources - shared data is essential to many applications (banking,
computer- supported cooperative work, reservation systems); other resources can
be also shared (e.g. expensive printers).
Disadvantages –
• Complex System - Distributed systems are much more complex to setup and
difficult to maintain.
• Security problems - sharing generates the problem of data security.
• Networking problems: several problems are created by the network infrastructure,
which have to be dealt with: loss of messages, overloading, ...
Real Time Systems
• A real time operating system is the type of system which uses maximum time and
resources to output exact and on the time result.
• There is no difference between the results when same problem run on different occasion
on same machine.
• Real System is always on line whereas on line system need not be real time.
• Real-time systems are used when there are rigid time requirements on the operation of a
processor or the flow of data and real-time systems can be used as a control device in a
dedicated application.
• Real-time operating system has well-defined, fixed time constraints otherwise system
will fail.
• Example Scientific experiments, medical imaging systems, industrial control systems,
weapon systems, robots, and home-applicance controllers, Air traffic control system etc.
Real Time Operating System
Types of real-time operating systems
Hard real-time systems -
• Hard real-time systems guarantee that critical tasks complete on time. For Ex. Scientific
experiments, medical imaging systems, industrial control systems, weapon systems,
robots, and home-applicance controllers, Air traffic control system etc.
https://www.studytonight.com/operating-system/
https://computing.llnl.gov/tutorials/
https://www.tutorialspoint.com/operating_system/index.htm#:~:text=An%20operating%20system%
20(OS)%20is,software%20in%20a%20computer%20system.
https://www.javatpoint.com/os-tutorial
https://www.guru99.com/operating-system-tutorial.html
https://www.geeksforgeeks.org/operating-systems/