Uni-Programming
Batch/Uni-
Programming
The user has to submit a job (written on cards
or tape) to a computer operator.
Then computer operator places a batch of
several jobs on an input device.
Jobs are batched together by type of
languages and requirement.
Then a special program, the monitor, manages
the execution of each program in the batch.
Memory Layout
for
Uniprogramming
Uni-Programming
P2
P3
P4
P1
I/O
CPU
OS
OS
Uni-Programming
0
P1
I/O
CPU
Clock
P2
P3
P4
P1
Uni-Programming
1
P1
I/O
CPU
Clock
OS
P2
P3
P4
P1
Uni-Programming
2
P1
I/O
CPU
Clock
OS
P2
P3
P4
P1
Uni-Programming
3
P1
I/O
CPU
Clock
OS
P2
P3
P4
P1
Uni-Programming
4
P1
I/O
CPU
Clock
OS
P2
P3
P4
P1
Uni-Programming
5
P1 I/O
CPU
Clock
OS
P2
P3
P4
P1
CPU is
idle
Uni-Programming
6
P1 I/O
CPU
Clock
OS
P2
P3
P4
P1
CPU is
idle
Uni-Programming
7
P1 I/O
CPU
Clock
OS
P2
P3
P4
P1
CPU is
idle
Uni-Programming
8
P1 I/O
CPU
Clock
OS
P2
P3
P4
P1
CPU is
idle
Uni-Programming
9
P1 I/O
CPU
Clock
OS
P2
P3
P4
P1
CPU is
idle
Uni-Programming
10
P1 I/O
CPU
Clock
OS
P2
P3
P4
P1
Uni-Programming
11
P1
I/O
CPU
Clock
OS
P2
P3
P4
P1
Uni-Programming
12
P1
I/O
CPU
Clock
OS
P2
P3
P4
P2
P1
Uni-Programming
13
P2
I/O
CPU
Clock
OS
P3
P4
P2
Uni-Programming
14
P2
I/O
CPU
Clock
OS
P3
P4
P2
Uni-Programming
15
P2
I/O
CPU
Clock
OS
P3
P4
P2
Uni-Programming
16
P2
P3
I/O
CPU
Clock
OS
P3
P4
P2
Uni-Programming
17
P3
I/O
CPU
Clock
OS
P4
P3
Uni-Programming
18
P3 I/O
CPU
Clock
OS
P4
P3
CPU is
idle
Uni-Programming
19
P3 I/O
CPU
Clock
OS
P4
P3
CPU is
idle
Uni-Programming
20
P3 I/O
CPU
Clock
OS
P4
P3
CPU is
idle
Uni-Programming
21
P3 I/O
CPU
Clock
OS
P4
P3
Uni-Programming
22
P3
I/O
CPU
Clock
OS
P4
P3
Uni-Programming
23
P3
P4
I/O
CPU
Clock
OS
P4
P3
Uni-Programming
24
P4
I/O
CPU
Clock
OS
P4
Uni-Programming
25
P4
I/O
CPU
Clock
OS
P4
Uni-Programming
00
P4
I/O
CPU
Clock
OS
P4
Uni-programming I/O operations are exceedingly slow
(compared to instruction execution).
A program containing even a very small
number of I/O operations, will spend
most of its time waiting for them.
Hence: poor CPU usage when only one
program is present in memory.
Disadvantages
Zero interaction between user
and computer.
No mechanism to prioritize
processes
Poor CPU usage when only one
program is present in memory.

UniProgramming Copy.pptx