Lecture # 03
Lecture # 03
– Serial Processing
– Simple Batch Systems
– Multiprogrammed batch systems
– Time Sharing Systems
ENIAC 1943
4 Dr. Bushra Naz
Two main problems:
Scheduling:
• Most installations used a hardcopy sign-up sheet to reserve computer
time.
• A user might sign up for an hour and finish in 45 minutes; this would result
in wasted computer processing time.
• On the other hand, the user might run into problems, not finish in the
allotted time, and be forced to stop before resolving the problem.
Setup time:
• A single program, called a job, could involve loading ,linking and saving
• Each steps could involve mounting or dismounting tapes or setting up card
decks.
• If an error occurred, the user typically had to go back to the beginning of
the setup sequence.
• Thus, a considerable amount of time was spent just in setting up the
program to run
Simple batch system
• Early computers were extremely expensive
– Important to maximize processor utilization
• To improve utilization, the concept of a batch operating system
(use of a piece of software known as the monitor)was
developed
• With this type of OS, the user no longer has direct access to the
processor.
• Instead, the user submits the job on cards or tape to a
computer operator, who batches the jobs together
sequentially and places the entire batch on an input device,
for use by the monitor.
• Each program is constructed to branch back to the monitor
when it completes processing, at which point the monitor
automatically begins loading the next program.
• To understand this scheme: 2 view
• Monitor point of view
• Processor point of view
Monitor point of view
• The monitor controls the sequence of events.
• Much of the monitor must always be in main memory and available
for execution -> resident monitor.
• The rest of the monitor consists of utilities and common functions
that are loaded as subroutines to the user program at the beginning of
any job that requires them.
• The monitor reads in jobs one at a time from the input device
• As it is read in, the current job is placed in the user program area, and
control is passed to this job.
• When the job is completed, it returns control to the monitor, which
immediately reads in the next job.
• The results of each job are sent to an output device, such as a printer,
for delivery to the user.
Processor point of view:
• computer spends over 96% of its time waiting for I/O devices to
finish transferring data to and from the file
• Uniprogramming: Processor must wait for I/O instruction to
complete before preceding