Batch Operating Systems

Back in 1950s and 1960s, there were no well-developed operating systems, advanced computer architecture and secondary memory devices. Instead there were large mainframe computers for the processing work and punched cards or magnetic tapes were used to provide the input and receive the output. The major problem was the lack of hard disk in those times.

So, what the users did was that they prepared the program (which was termed as a job in those days) manually and then used an input magnetic tape using which the job’s code was submitted to the computer. Once this was done, the user could no longer interact with the job and when the processing was done, an output magnetic tape was used to obtain the output.

What is Batch Operating System?

Jobs that can run without end user interaction, or can be scheduled to run as resources permit, are called batch jobs. Batch processing is basically for those frequently used programs that can be run with minimal human interaction. A program that reads a large file and generates a report, for example, payroll is considered to be a batch job.

Examples of Batch based Operating System:

Payroll System, Bank Statements etc.

Need for Batch Systems

But there was another problem too. Suppose one job is in C language and other one is in Java. We know that both the jobs now require entirely different environments for their execution. So, the I/O magnetic tapes needed to be loaded and unloaded again and again. As the number of users increased, so did the number of jobs and it was really a time-consuming process. Most of the time was wasted in this I/O work only and CPU remained idle for too long.

Then a solution to this problem was devised that jobs requiring similar environmental conditions will be submitted altogether within a batch. Since similar jobs were put together in a batch, this system was termed as a batch system.

Batch Operating Systems

How users uses batch operating system

Batch operating system users do not interact with the computer directly. Each job is prepared by each user on an off-line device like punch cards and submits it to the computer operator. To increase the  processing speed, jobs with similar needs are batched together and run as a group. After completing the coding for the programs the programmers hand over their programs to the operator and the operator then analyisis the programs having similar requirements and then devide them into batches.

Why BOS are used?

batch operating systems load very less stress on cpu and involve lesser user interaction so that’s why we can use batch system in now a days also. Another advantage of batch operating systems is that the large repeated jobs can done without interacting with computer to tell the system that you have to do that job after finishing that job. Old batch operating systems were not interactive i.e. the user interaction was not involved when the program is running. Now in modern batch operating systems we have interactions also. For example we can schedule the job and when the specific time comes then computer acknowledge the processor that time is over. This helps us tin avoiding too many errors and makes debuging easier.

Role of a batch operating system

The main role of a batch operating system is to automatically executing the jobs in a batch. This is the primary task of a batch processing system i.e. performed by the 'Batch Monitor' resides in the low end of main memory. This technique was feasible due to the invention of hard-disk drives and card readers. Now the jobs can be saved on the disk to make the pool of jobs for its execution as a batch. Firstly the extracted jobs are read and executed by the batch monitor, and then these jobs are grouped, placing the similar jobs (jobs with the similar needs) in the same batch, So, in the batch operating system, the batched jobs were executed automatically one after the other saving its time by performing the tasks (like loading of compiler) only for once. It resulted in better system utilization due to reduced turn around time.

Advantages of Batch Operating Systems

  1. A lot of manual work is reduced.
  2. Execution becomes fast and well managed.
  3. CPU’s idle time is reduced.
  4. Repetitive use of Punched cards and magnetic tapes is reduced.

Disadvantages of Batch Operating Systems

  1. Sequential execution: This is one of the major disadvantages of Batch Systems. Jobs in a batch are always executed sequentially. For example, if there are 4 jobs in one batch, then they are always executed one by one and the output is obtained only once all 4 jobs are completed. so Difficult to provide the desired priority.
  2. Starvation: Different jobs in a single batch might take different amounts of time in execution. This might lead to starvation of some jobs. Suppose there are 4 jobs in a batch and the first job takes too long to execute then the other three jobs in the same batch will have to wait for long until the first one is completed.   
  3. No interaction between job and user: Once a batch is submitted to the computer, the user is no longer able to interact with any of the jobs. Suppose there is a job which requires the user to give the input data during runtime. Now, He must wait until all the jobs in that batch are completed. So, the overall execution time is increased a lot.

Frequently Asked Questions

Ans: There are many types of operating systems that can be listed to study the types the operating systems. These types of operating systems are important as they explain us the evolution of the operating system with time. This evolution took place due to the customer’s demands and due to the enhancement in technology. There are 5 types of operating System- Batch Operating Systems, Time Sharing Systems, Distributed Operating Systems, Network Operating Systems, Real Time Operating Systems view more..
Ans: Operating system acts as an interface between the user and the hardware. It is something which relieves the user from bothering about hardware related issues. what is multitasking, Multiprogramming, Multiuser Operating System, Multithreading view more..
Ans: The main function of a batch processing system is to automatically keep executing the jobs in a batch. This is the important task of a batch processing system i.e. performed by the 'Batch Monitor' resided in the low end of main memory. This technique was possible due to the invention of hard-disk drives and card readers. Now the jobs could be stored on the disk to create the pool of jobs for its execution as a batch. view more..
Ans: Time Sharing Systems or multi-tasking systems are the major advancement in the batch processing systems. They are the one which support simultaneous execution of multiple tasks using a single processor. The time-sharing operating system assures that all the tasks get to access the CPU one by one and for a fixed small interval of time. This interval is known as the time quantum. view more..
Ans: Distributed Operating System is a recent advancement in the world of computer technology and are being widely accepted all-over the world and, that too, with a great pace view more..
Ans: Network Operating System is a collection of various computers which are all connected to a single host computer. It can be compared to a client – server architecture where the host computer acts as a server and rest of the systems act as clients which take services from the common server and access its resources also. view more..
Ans: Real time operating System (RTOS) is an operating system that serves the real-time systems. Before understanding the term “Real Time Operating System” we need to understand the two terms it comprises of i.e., Real Time Systems and Operating System. view more..
Ans: We can broadly classify these services into following five categories: Process management Device management Inter-process Communication File management Error detection view more..
Ans: there are 4 types of architectures of operating system: 1. Monolithic architecture 2. Layered architecture 3. Microkernel architecture 4. Hybrid architecture view more..
Ans: It is the oldest architecture of the operating system. We know that all the core software components of the operating system are collectively known as the kernel. view more..
Ans: This is an important architecture of operating system which is meant to overcome the disadvantages of early monolithic systems. view more..
Ans: The basic ideology in this architecture is to keep the kernel as small as possible. We know that kernel is the core part of the operating system and hence it should be meant for handling the most important services only. view more..
Ans: the idea was to combine the best functionalities of all old approaches and hence this design is termed as the hybrid structured operating system. view more..
Ans: System Calls and Programs All the present-day operating systems support the following two modes of operation for the CPU: User mode Kernel mode view more..
Ans: A batch system executes jobs, whereas a time-shared system has user programs, or tasks. Even on a single-user system such as Microsoft Windows, a user may be able to run several programs at one time: a word processor, a web browser, and an e-mail package. Even if the user can execute only one program at a time, the operating system may need to suppoft its own internal programmed activities, such as memory management. view more..
Ans: 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 or the ability to allocate tasks between them. view more..
Ans: Process scheduling selects processes from the queue and loads them into memory for execution. Process loads into the memory for CPU scheduling. The primary objective of the job scheduler is to provide a balanced mix of jobs, such as I/O bound and processor bound. ... Time-sharing operating systems have no long term scheduler. view more..

Rating - 3/5