What Is Batch Operating System? Advantages and Disadvantages? - Simple Explanation Using Animation
What Is Batch Operating System? Advantages and Disadvantages? - Simple Explanation Using Animation
| Simple
Explanation using Animation
Brief history
in early 1950s batch operating system got into action at that time computer were not that
developed they had very less processing power and a very minimal memory at that time
only one job would get executed at a time we had to wait until the job gets executed to
run the next job; we are saying execution of a job and not execution of program.
Job?
The operating system are the computers at that time were not interactive what do we
mean by that?
Example:
If you go in an ATM the Machine interacts with you it will first ask your PIN
after you enter it; it will ask for amount then do you want the slip you can interact
with it basically it will take information do the processing ask you next question
or input and do processing on it but the computers in early stages were not
interactive it would require everything all at once.
As we need to input all information at once it was given input as a job; job would
basically consist of program input data and control instructions
if you had to execute a division operation on two numbers then this is how your job
would look like.
Program would contain the calculator program input data would be the two
numbers on which division would be performed and the control instruction would
be division operation as we need to use the division operation from the calculator
program control instruction specifies what were which operation from the
program you need to execute.
The input device at that time used was punch card readers and punch cards were storage
device punch cards were stiff papers which could store digital data represented by
presence or absence of holes in predefined positions the light was passed through the
punch cards light would pass from the holes and get blocked where holes were not
present so from where the light would pass was considered binary one and from where
light want pass would be considered as binary zero so we had to input the information in
machine language itself punch cards were punched by hands or by machine.
After preparing the job users would give it to the operator; operator was person who
would operate the computer he would collect all the jobs from the user there was no
direct interaction of user and operating system or computer.
Example
Let's say we have three jobs two of them are same and one is different; and you execute
in this sequence the system will load all the resources required for the job take the input
do all processing and give the output. then it will take the next job as the
new job is different it has to deallocate the resources from previous job and allocate the
resources for new job again the whole process will work then the last job will be
executed again as a different from the previous job D allocation of resources and
allocation of resources for particular job will be done.
due to less memory and processing power execution time taken was too much and
allocation and de-allocation of resources for each new job would also take time batch
processing was the solution on this problem. the similar kinds of job were combined in
batches using this technique system would allocate resources for a particular type of jobs
all jobs which are having similar requirements will execute it one by one this would save
the time for making system ready for different job each time.
Advantages
Dis-advantages