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 into the main memory at one
point of time. A computer running excel and firefox browser
simultaneously is an example of multiprogramming.
Memory layout for Multiprogramming System
Multitasking
Multitasking is the ability of an operating system to execute more than
one task simultaneously on a single processor machine. Though we
say so but in reality no two tasks on a single processor machine can be
executed at the same time. Actually CPU switches from one task to the
next task so quickly that appears as if all the tasks are executing at
the same time. More than one task/program/job/process can reside
into the same CPU at one point of time.
Multitasking System