Multi-programming Vs. Multi-tasking

What is the difference between Multi-programming and Multi-tasking? Please illustrate with an example.

Replies

  • optimystix
    optimystix
    these might help

    #-Link-Snipped-#

    #-Link-Snipped-#

    #-Link-Snipped-#
  • anandkumarjha
    anandkumarjha
    Multitasking is also refered to as multi processing and it can be explained as the occurence of two or more process at a time in a system.it shares the common processor called CPU.CPU executes more than one task at a time.IN cpu when one task is running at a given time then other waits for its turn
    but in the case of multiprogramming more than one programmes is being loaded into the main memory at a time and the first one starts executing and likewise all the programmes executes one after another when the running task waits for some devices.
  • anandkumarjha
    anandkumarjha
    in multiprogramming the programs may delay themselves as it is possible for the first program which is currently running to finish itself without wanting for any periferal devices but this is not the case with multitasking .all the process will go cuncurrently
  • deepika mishra
    deepika mishra
    Not yet getting the concept.Is Multi-programming meant for executing simultaneous programs of the same application?
  • Reya
    Reya
    hey deepika have a look at the link which opty has posted you will have better idea about multi programming
    &multi tasking.If you cant understand u are free to ask.
  • Reya
    Reya
    In multi programming it cannot execute the programs simultaneously in the memory..In this process several different programs were loaded in the computer memory, and the first one began to run. One program after another executed when the first program reached an instruction it has to wait for a device that has a message, the context of this program was stored away, and the second program in memory was given a chance to run. The process continued until all programs finished running.More than one program reside into the main memory is called multiprogramming..
    And more than one program reside into the same cpu is called multi tasking..
  • Leo
    Leo
    So i think it's getting little difficult for someone to explain difference, so i' ll try to go in detail.

    1.A line of code written in any programming language is known as instruction.

    2.A set of instruction is known as program.Ex. A Typical program in source code format.

    3.A program in execution state makes a process, in other word a running program is a process.

    4.A single program or multiple programs working together to give productive output is software.

    5.Note that software is logically coined term and running of a complete software program is a task. Ex. MS Word. This means even task is logical term.
    In other words multi-programming is term coined with respect software developer and multi-tasking with respect to general user. So they are exactly one and the same thing but the meaning differs to whom it is concerned.

    6.Now a capability of environment or platform to run several processes simultaneously is known as multi-processing. Note that multi-processing is capability of platform not CPU, a CPU may be designed with single core or multiple core or to process one instruction one time, or multiple instruction one time, it's job of platform you are using to make several processes run simultaneously by using scheduling algorithm.

    7.A process space is resources taken by a specific process for self execution.Memory and Hard Disk Space.

    8.Multi-threading is property of program via which it is able to process several request with available process space . Multi-threading is not feature of any platform, it is feature of program and programming language. Multi-threading property of program is crafted by programmer and not by OS.

    9.Now if a CPU have multiple cores and even your platfrom supports processing on multiple processors, then a property of program to run on more than one CPU is known as its CPU Affinity. A CPU affinity refers to one compelete program running multiple processes, not to a task since a task may conatin more than one program.

    10.A capability of CPU to run several instruction one time is known as Hyper-Threading. It does not refer context switching it means two or more different instructions being executed simultaneously.

    Note:In above discussion Environment and Platform always refereed to an Operating System.

    This is possible easiest explanation i can give. Rest is left to your understanding. Happy Computing.
  • Reya
    Reya
    Awesome explanation leo😀no one ll ask doubt after reading this😀
  • deepika mishra
    deepika mishra
    @Leo:Its really a great detailed description.Thanks.
    @praveena:I was actually missing opti's links. Thanks for your efforts.
    @optimystics:I got my point cleared.Thanks a lot.
  • maurizio fridtjof
    maurizio fridtjof
    deepika mishra
    What is the difference between Multi-programming and Multi-tasking? Please illustrate with an example.
    I found this short post very useful. You may give it a shot
    #-Link-Snipped-#
  • Jay Kosta
    Jay Kosta
    The 'main concern' and 'complication' with multi-anything is how to synchonize and serialize the use of items that are 'common' among the various tasks/threads/processes.

    For example -if a section of code needs 'exclusive control' of a data block that is accessible by others, then there needs to be a way to 'block' those others from interfering until the 'owning' section of code has completed its use of the data block..

    Jay Kosta
    Endwell NY USA

You are reading an archived discussion.

Related Posts

CEans, You asked for it and we have it ready for you. You can now 'Like' the discussions on CE and share it with your friends on Facebook 😁 with...
Facebook Like button has been introduced on CE for all the threads. If you like any discussion on CE, be sure to click 'Like' button and help us spread the...
If you use Facebook regularly, as we have the new "like" button on CE, let us share our Facebook profile page so that its easy for CEans to connect. And...
This may sound silly, but please let me know which of the statements is true. a)A 11/33kV transformer has a 11kV primary and a 33kV secondary b)A11/33kV transformer has a...
Hello CEans, We all regularly get queries form CEans regarding creating an impressive CV. HappyCV is a web application that helps us create customized good-looking CVs within minutes. Creating and...