You are on page 1of 9

MULTI-PROGRAMMED

SYSTEM
SAIQA ASGHAR
CONTENT

Multi Programmed system.


Goal of multi programmed system.
Job Scheduling.
CPU scheduling.
Memory management.
MULTI-PROGRAMMED SYSTEM

Multiprogramming refers to having multiple


(programs, processes, tasks, threads) running at
the same time. This term is used in modern
operating systems when multiple tasks share a
common processing resource (e.g., CPU and
Memory).
MULTI-PROGRAMMING

Multiprogramming is a basic form of parallel


processing in which several programs are run at
the same time on a uniprocessor. Since there is
only one processor, there can be no true
simultaneous execution of different programs.
Instead, the operating system executes part of one
program, then part of another, and so on. To the
user it appears that all programs are executing at
the same time.
GOAL OF MULTI PROGRAMMING

Efficient utilization all of the computing resources.

It is not possible for single user to keep CPU or I/O


devices busy at all time. Multiprogramming allows
the system to increase CPU utilization by ensuring
that the CPU always has a job to execute.
WORKING..

If the job have to wait for some task, such as an


I/O operation, to complete. In a non-
multiprogrammed system, the CPU would sit idle.
In a multiprogramming system, the operating
system simply switches to, and executes, another
job. When that job needs to wait, the CPU is
switched to another job, and so on.
JOB SCHEDULING

All the jobs that enter the system are kept in the job
pool. This pool consists of all processes residing
on disk awaiting allocation of main memory. If
several jobs are ready to be brought into memory,
and if there is not enough room for all of them,
then the system must choose among one them.
Making this decision is job scheduling.
CPU SCHEDULING

When the operating system selects a job from the


job pool, it loads that job into memory for
execution. Having several programs in memory at
the same time requires some form of memory
management. In addition, if several jobs are ready
to run at the same time, the system must choose
among them. Making this decision is CPU
scheduling.
MEMORY MANAGEMENT

The operating system determines which jobs will


stay on the disk and which ones will be loaded
into memory. For this purpose
Memory management is used to keep the record
of which jobs are stored where and how much
space is available.

You might also like