UNIT 1 PART 4
UNIT 1 PART 4
An Operating System performs all the basic tasks like managing files,
processes, and memory. Thus operating system acts as the manager of all
the resources, i.e. resource manager. Thus, the operating system becomes
an interface between user and machine.
Types of Operating Systems: Some widely used operating systems are as
follows-
1. Batch Operating System –
This type of operating system does not interact with the computer
directly. There is an operator which takes similar jobs having the same
requirement and groups them into batches. It is the responsibility of the
operator to sort jobs with similar needs.
Role of Batch Operating System:-
A batch operating system's primary role is to execute jobs in batches automatically. The
main task of a batch processing system is done by the 'Batch Monitor', which is
located at the low end of the main memory. The jobs can now be stored on a disk to
form a pool of jobs for batch execution. After that, they are grouped with similar jobs
being placed in the same batch. As a result, the batch operating system automatically
ran the batched jobs one after the other, saving time by performing tasks only once. It
resulted from a better system due to reduced turnaround time. In computing, turnaround
time is the total time taken between the submission of a program/process/thread/task
for execution and the return of the complete output to the customer/user. Turnaround
time may simply deal with the total time it takes for a program to provide the required
output to the user after the program is started.
In case of batch systems, turnaround time will include time taken in forming batches,
batch execution and printing results.
There are various characteristics of the Batch Operating System. Some of them are as
follows:
1. In this case, the CPU executes the jobs in the same sequence that they are sent
to it by the operator, which implies that the task sent to the CPU first will be
executed first. It's also known as the 'first come, first serve'
2. The word job refers to the command or instruction that the user and the program
should perform.
3. A batch operating system runs a set of user-supplied instructions composed of
distinct instructions and programs with several similarities.
4. When a task is successfully executed, the OS releases the memory space held
by that job.
5. The user does not interface directly with the operating system in a batch
operating system; rather, all instructions are sent to the operator.
6. The operator evaluates the user's instructions and creates a set of instructions
having similar properties.
Advantages:-
There are various advantages of the Batch Operating System. Some of them are as
follows:
1. It is not easy to forecast how long it will take to complete a job; only batch system
processors know how long it will take to finish the job in line.
2. This system can easily manage large jobs again and again.
3. The batch process can be divided into several stages to increase processing
speed.
4. When a process is finished, the next job from the job spool is run without any
user interaction.
5. CPU utilization gets improved.
Disadvantages:-
There are various disadvantages of the Batch Operating System. Some of them are as
follows:
1. When a job fails once, it must be scheduled to be completed, and it may take a
long time to complete the task.
2. Computer operators must have full knowledge of batch systems.
3. The batch system is quite difficult to debug.
4. The computer system and the user have no direct interaction.
5. If a job enters an infinite loop, other jobs must wait for an unknown period of time.
Advantages of RTOS:
Maximum Consumption: Maximum utilization of devices and system,
thus more output from all the resources.
Task Shifting: The time assigned for shifting tasks in these systems are
very less. For example, in older systems, it takes about 10 microseconds
in shifting one task to another, and in the latest systems, it takes 3
microseconds.
Focus on Application: Focus on running applications and less
importance to applications which are in the queue.
Real-time operating system in the embedded system: Since the 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.
Memory Allocation: Memory allocation is best managed in these types
of systems.
Disadvantages of RTOS:
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 interrupts signals to respond earliest to interrupts.
Examples of Real-Time Operating Systems are: Scientific experiments,
medical imaging systems, industrial control systems, weapon systems,
robots, air traffic control systems, etc.