Skip to main content


Batch processing is a technique in which an Operating System collects the programs and data together in a batch before processing starts. Batch processing systems were introduced to avoid the problems of early systems i.e. more setup time. In this approach similar jobs were submitted to the CPU for processing and were run together.
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.

Working of Batch OS 

This technique was possible due to the invention of hard-disk drives and card readers so the jobs could be stored on the disk to create the pool of jobs for its execution as a batch. First the pooled jobs are read and executed by the batch monitor & then these jobs are grouped by placing the identical jobs in the same batch. So in this system, the batched jobs were executed automatically one after another saving its time by performing the activities (like loading of compiler) only once and hence it resulted in improved system utilization due to reduced turn around time. 

In batch processing the user was supposed to prepare a program as a deck of punched cards. The header card in the deck was the "job control" cards which would indicate that which compiler was to be used. The deck of cards would be handed in to an operator who would collect such jobs from various users. Then the submitted jobs were 'grouped as FORTRAN jobs, COBOL jobs etc. In addition, these jobs were classified as 'long jobs' that required more processing time or short jobs which required a short processing time. Each set of jobs was considered as a batch and the processing would be done for a batch. In this system, only one job could engage the processor at a time and if there was any input/ output operation the processor had to sit idle till the completion of I/O job. So it resulted to the underutilization of CPU time.




Pros & Cons of Batch OS

Pros:-
  • Suppose a job takes a very long time(1 day or so). Then, such processes can be performed even in the absence of humans.
  • They doesn't require any special hardware and system support to input data.


Cons:-
  •  It is very difficult to debug batch systems.
  •  Lack of interaction between user and operating system.
  •  Suppose an error occurs in one of the jobs of a batch. Then, all the remaining jobs get affected i.e. they have to wait until the error is resolved.




Comments

Popular posts from this blog

Distributed Operating System  is a model where distributed applications are running on multiple computers linked by communications. A distributed operating system is an extension of the network operating system that supports higher levels of communication and integration of the machines on the network. This system looks to its users like an ordinary centralized operating system but runs on multiple, independent  central processing unit s (CPUs). Distributed systems use multiple central processors to serve multiple real-time applications and multiple users. Data processing jobs are distributed among the processors accordingly. The processors communicate with one another through various communication lines (such as high-speed buses or telephone lines). These are referred as  loosely coupled systems  or distributed systems. Processors in a distributed system may vary in size and function. These processors are referred as sites, nodes, c...
A Real Time Operating System is a software component that rapidly switches between tasks, giving the impression that multiple programs are being executed at the same time on a single processing core. Eg: PSOS, VRTX, RT Linux, Lynx, etc TYPES OF REAL TIME OPERATING SYSTEM There are 3 types of real time operating systems:- 1. SOFT REAL TIME OS Soft real time OS is a type of OS where certain deadlines may be missed but they will respond at a time t=0+. Soft real time systems are not constrained to extreme rules. The critical time of the soft real time may be delayed to some extent. The expected latency between the tasks and time constraints may be deviated. The preemption period for a soft real time task is about few milliseconds. Eg: Digital camera, mobile phones, online data base etc 2. HARD REAL TIME OS Hard real time OS is a type of OS we can predict the deadline but they will respond at a time t=0. Hard real time systems are constrained to predicted time c...