MULTI PROCESSING
Multiprocessing
Multiprocessing
means multiple processors. Like an (octal– core and dual-core )
Multiprocessing is
an ability of a computer to use two or more processors for computer
operations.
With multiple processors, the
computer performance can be significantly increased.
Definition of multiprocessing
In multiprocessing OS more then one process can run on a different CPU at the same time so there is a real parallel execution of the process
Example of Multiprocessing
Example of Multiprocessing
Symmetric multiprocessing
All
CPU has the same function and access control
One
OS control all CPUs and each CPU has equal rights. All are the same and not a slave
and master
Through
symmetric multiprocessing, one operating system can use all the CPUs at once
(thus allowing several tasks to be performed simultaneously).
Asymmetric multiprocessing
One
CPU will be master and others will be a slave. Master CPU will decide which the process will be handled by which CPU
Example of symmetric and Asymmetric
Example of symmetric and Asymmetric |
Advantages and disadvantages of multiprocessing
High throughput (no: of jobs per
unit time exp: m/s Nanosecond
High reliability
Low cost
Disadvantages:
Large main memory
Complex design
Multitasking
In
the multitasking OS, each process is executed for a fixed time period. After that fixed time CPU switches to another process
This
fixed time, the period is called Quantum.
It
is also called a timeshare OS system.
During multitasking, tasks such as listening to a CD or browsing the Internet can be performed in the background while using others in the foreground exp: word, song, Google, etc.
Example of multitasking
Example of multitasking |
Multiprogramming
Multiprogramming is also the
ability of an operating system to execute more than one program on a single
processor machine.
More than one
task/program/job/process can reside in the main memory at one point in time.
A computer running excel and Firefox browser simultaneously is an example of
multiprogramming.
Maximize CPU utilization.
More than one process in the main
memory is ready to execute.
Example of Multiprogramming
Example of Multiprogramming |
0 Comments