Difference between multitasking, multithreaded and multiprocessing?

What is the difference between multitasking, multiprogramming and multiprocessing

This comes regularly for university OS exams, and I cannot find a good answer. I know quite a lot about multitasking and multiprogramming, but I need to confirm this.

+57
multithreading multiprocessing operating-system multitasking
May 16 '11 at 19:58
source share
25 answers

To paraphrase Wikipedia:

Multiprogramming - a computer that simultaneously works with several programs (for example, running Excel and Firefox at the same time) http://en.wikipedia.org/wiki/Multiprogramming

Multiprocessing - a computer that uses several processors simultaneously http://en.wikipedia.org/wiki/Multiprocessing

Multitasking - tasks shared by a shared resource (for example, 1 processor) http://en.wikipedia.org/wiki/Computer_multitasking#Multithreading

  • Thus, something like multithreading is an extension of multitasking.
+68
May 16 '11 at 20:04
source share

Multiprogramming: At one point in time, more than one task / program / task / process can be in the main memory. This ability of the OS is called multiprogramming.

Multitasking: Several tasks / program / work / process can be in the same processor at one time. This OS ability is called multitasking.

+26
Jul 30 '11 at 2:37 a.m.
source share

None of the above answers, except for Mr. Vaibhava Kumar, is clear or ambiguous. [sorry no offense]

Both multiprogramming and tasks are the same concept of the switching task in the processor, the difference in the concept and reason for switching.

MProgramming: so that the processor does not work when the active task requires a longer input-output or another non-processor response, then the processor loads and works on another task that does not wait for input-output and is ready for the process.

Disguise: even after MPrograming, it may seem to the user that only one task is being performed, and the other is just waiting to come to the processor. Thus, the active task is also replaced by the active processor and stored aside, while another task is applied to the CPU for a very small part of human time [second] and returns to the previous task again. Thus, the user will feel that both tasks remain in the processor memory at the same time. But in fact, each task is active only once at a given processor time [in micro- or nano-seconds]

And MProcessing, like my computer, has a quad core, so I use 4 processors at a time, which means 4 different instances of multiprogramming on my machine. And these 4 processors make yet another lack of MTasking.

So, MProcessing> MProgramming> Mtasking

And MThreading n is a different breakdown of each task. which also give the user a happy life. Here, several tasks (for example, word doc and media player) do not appear in the image, and small sub-tasks, such as coloring text in a word and automatic spelling in a word, are part of the executable file.

not sure i was able to clear up all the confusion ...

+12
Sep 20 '14 at 11:45
source share

Multiprogramming: this means running several programs on the computer. If the user cannot interact with the system, everything is determined by the OS.

Multitasking: This is a logical extension of multiprogramming. This means performing several tasks on the computer. Switching between tasks is so fast that the user can interact with the system.

Multithreading: mainly observed when a larger number of clients access the server.

+4
Sep 14 '11 at 18:43
source share

Multiprogramming. Tasks to be completed are uploaded to the pool. A number of these tasks are loaded into the main memory, and one of them is selected from the pool to execute the CPU. If at some point a running program terminates or requires maintenance of a peripheral device, CPU control is given to the next task in the pool. As the program completes, more tasks are loaded into memory, and the CPU control switches to another task in memory. Thus, the CPU always runs some program or part of it, instead of waiting for a printer, tape drive or input to the console

Multiprocessing - simultaneous execution of two or more programs or sequences of commands by separate CPUs with integrated control

multitasking system - parallel or alternating execution of two or more tasks by one processor.

A multi-user system is a computer system in which several terminals are connected to a host computer that processes processing tasks.

+4
Apr 21 '13 at 5:04 on
source share

Multitasking . This is also called time sharing, because at a certain time several tasks (or processes) can switch so that the user can get an idea that they are working at the same time.

Multithreading . To make the user more saturated, tasks (in one process) are further subdivided into subtasks. These sub-tasks can then work in a multi-task environment.

Multiprocessing processing . This is a process when several processors start a process (or program) at a given time. This reduces the calculation time.

+3
Nov 01 '17 at 8:45
source share

Multithreading Multithreading extends the idea of ​​multitasking in applications, so you can split separate operations in one application into separate threads.

+2
03 Oct '13 at 9:28
source share

Multitasking is basically multi-programming in the context of a single-user interactive environment in which the OS switches between several programs in the main memory to give the illusion that several launches at the same time. General scheduling algorithms used for multitasking: Round-Robin, Priority Scheduling (multiple queues), Shortest-Process-Next.

MULTIPROCESSING is similar to an OS that processes different jobs in main memory in such a way that it gives time for each job when another one is busy performing a task, such as an I / O operation. Thus, while at least one task must be completed, the processor never sits idle. and here it is automatically processed by the OS,

+2
Jul 29 '14 at 9:36 on
source share

Multiprogramming . A computer running multiple programs at the same time (for example, starting Excel and Firefox at the same time)

Multiprocessing processing . A computer using multiple processors simultaneously.

Multiprogramming . At one moment in time, more than one task / program / task / process can be in the main memory. This ability of the OS is called multiprogramming.

Multitasking . Several tasks / program / work / process can be in the same CPU at one time. This OS ability is called multitasking.

A multi-user system is a computer system in which several terminals are connected to a host computer that processes processing tasks.

+2
Aug 05 '14 at 12:02 on
source share

Multiprogramming and multitasking; both solve different problems, although they use a similar method of switching between processes.

Multiprogramming . In the early days, it seemed that some processes sometimes needed to use peripheral devices (like I / O) in which the CPU remained inactive. For more efficient use of the CPU, it was considered that several processes in memory were considered, therefore, if a peripheral device is required to perform a specific process, some other processes may use the processor. It was the idea of ​​multiprogramming.

Multitasking . It is required that several processes be executed simultaneously for the end user. Thus, it taunts, switching between these processes and forcing them to work on the CPU at the same time. This is multitasking.

+2
Aug 10 '14 at 19:14
source share

Multiprogramming . This term is used in the context of packet systems. You simultaneously use several programs in the main memory. The CPU plans time for each of them.

those. sending several tasks, and all of them are loaded into memory and executed in accordance with the scheduling algorithm. Common batch system planning algorithms include: First-Come-First-Served, Shortest-Job-First, Shortest-Remaining-Time-Next.

Multitasking . This is mainly multiprogramming in the context of a single-user interactive environment in which the OS switches between several programs in the main memory to create the illusion that there are several starts at once, General scheduling algorithms used for multitasking: Round-Robin, Priority Scheduling (several queues) , Shortest-Process-Next.

0
May 10 '13 at 12:30
source share

MULTIPROCESSING is similar to an OS that processes different jobs in main memory in such a way that it gives time for each job when another one is busy performing a task, such as an I / O operation. Thus, while at least one task must be completed, the processor never sits idle. and here it is automatically processed by the OS, without interacting with the computer.

But when we talk about MULTITASKING, the user is actually associated with different tasks, as in his time, a minesweeper or checks mail or something else. The CPU performs several tasks by switching between them, but switching is so fast that the user has the illusion that both applications work simultaneously.

Thus, the main difference between mp and mt is that in mp the OS processes different tasks in the main memory in such a way that if some task is waiting for something, then it jumps to perform the next task. And in mt, the user interacts with the system and gets the illusion both simultaneously and with any of the applications.

0
Sep 06 '13 at 16:02
source share

Multiprograming

Running more than one program with an application to perform a specific task.

Example : in MS WORD, writing to a document and sending email

Multitasking

Running more than one application to perform a specific task.

Example : listening to a song, game, working in the word ms, excel and other applications at the same time

Multiprocessing

Execution of more than one instruction through the processor.

Example When creating a file, the computer takes the default time and date.

0
Sep 26 '13 at 5:59 on
source share

Multiprogramming - more than when working in the main memory.

Muntitasking - several programs are launched simultaneously. This is more than one program in the CPU.

0
Feb 23 '14 at 20:28
source share

Multiprogramming: -

More than one process (task) can be in the main memory at a time. This is basically a design to reduce processor losses during an I / O operation, for example: if the job is currently running and an I / O operation is required. An I / O operation is performed using DMA and a processor and is assigned to another job from the job queue until the I / O operation job1 is completed. then job1 will continue again. Thus, it reduces processor losses.




Multi-Tasking: -

In this type of OS, several tasks (processes) are executed at the same time (at the same time does not mean that the task is executed exactly at the same time ... multitasking does not imply parallelism). In this system, starting a new task before completing another task depends on the CPU planning method that it uses && & all processes share resources.




Multiprocessing: -

Use 2 or more processors in one processor. Thus, the task can be performed in parallel. But some b / w synchronization is needed.

0
Sep 21 '14 at 6:30
source share

Multiprogramming: -

More than one process (task) can be in the main memory at a time. This is basically a design to reduce processor losses during an I / O operation, for example: if the job is currently running and an I / O operation is required. An I / O operation is performed using DMA and a processor and is assigned to another job from the job queue until the I / O operation job1 is completed. then job1 will continue again. Thus, it reduces processor losses.

0
Dec 11 '14 at 9:21
source share

MultiProgramming . In a multiprogramming system, more than one program is loaded into the main memory that is ready for execution. Only one program at a time can get a processor to execute its instructions, and all the rest are waiting in line. The main idea of ​​multiprogramming is to maximize processor time utilization. Assume that the process currently being executed performs an I / O task, then the OS can interrupt this process and provide control of one of the other main memory programs that it is ready to execute (i.e., switching the process context). Thus, processor time is not lost in the system, waiting for the completion of the I / O task.

MultiProcessing . Multiprocessing is the ability of an operating system to execute several processes simultaneously on a multiprocessor machine. In a multiprocessor system, a computer uses several processors in tme.

Multitasking . Multitasking is the ability of the operating system to perform several tasks simultaneously on a single-processor machine; these numerous tasks have common resources, such as a processor and memory. In a multi-tasking system, the CPU switches from one task to the next task so quickly that it appears because all tasks are performed simultaneously.

There are differences between multitasking and multiprogramming. A task in a multitasking system is not a whole application program, but it can move on to the "thread of execution" when one process is divided into subtasks. Each smaller task does not take over the processor until it completes, they share a small amount of processor time Quantum. Multiprogramming and multitasking operating systems are time-sharing systems.

Multithreading . Multithreading is an extension of multitasking. Multithreading is the ability of the operating system to subdivide a specific operation within a single application into separate threads. Each of these threads can work in parallel. The OS divides the processing time not only between different applications, but also between each thread in the application.

0
Sep 27 '15 at 7:20
source share

incorrect In a multiprogramming system, more than one program is loaded in the main memory that is ready to be executed. Only one program at a time can get a processor to execute its instructions, and all the rest are waiting in line. The main idea of ​​multiprogramming is to maximize processor time utilization. Assume that the process currently being executed performs an I / O task, then the OS can interrupt this process and provide control of one of the other main memory programs that it is ready to execute (i.e., switching the process context). Thus, processor time is not lost in the system, waiting for the completion of the I / O task.

MultiProcessing - Multiprocessing is the ability of an operating system to execute multiple processes simultaneously on a multiprocessor machine. In a multiprocessor system, a computer uses several processors in tme.

Multitasking - multitasking - this is the ability of the operating system to perform several tasks simultaneously on a single-processor machine; these numerous tasks have common resources, such as a processor and memory. In a multi-tasking system, the CPU switches from one task to the next task so quickly that it appears because all tasks are performed simultaneously.

There are differences between multitasking and multiprogramming. A task in a multitasking system is not a whole application program, but it can move on to the "thread of execution" when one process is divided into subtasks. Each smaller task does not take over the processor until it completes, they share a small amount of processor time Quantum. Multiprogramming and multitasking operating systems are time-sharing systems.

Multithreading - multithreading is an extension of multitasking. Multithreading is the ability of the operating system to subdivide a specific operation within a single application into separate threads. Each of these threads can work in parallel. The OS divides the processing time not only between different applications, but also between each thread in the application.

0
Dec 02 '15 at 9:16
source share

Multiple threads can exist in one process. Threads belonging to the same process have the same memory area (they can read and write the same variables and can interfere with each other). On the contrary, different processes live in different areas of memory, and each of them has its own variables. For communication, processes must use other channels (files, pipes, or sockets).

If you want to parallelize the computation, you probably need multithreading because you probably want threads to interact in the same memory.

Speaking of efficiency, threads create and manage faster than processes (because the OS does not need to allocate a whole new area of ​​virtual memory), and cross-thread communication is usually faster than interprocess communication. But threads are harder to program. Streams can interfere with each other and can write memory to each other, but the way this happens is not always obvious (due to several factors, mainly reordering commands and memory caching), so you will need synchronization primitives to control access to your variables.

Source

0
Jan 27 '16 at 22:28
source share

Basically, Multi-programming is a concept in which you run more than one program at a time, assume that you run two programs, such as chrome (browser) and calculator (system application).

Multiprocessing is where a user uses more than one processor to complete a task.

To learn Multithreading , we need to know what a thread is. A thread is basically part of a program launched as part of a program. The best example of a stream is browser tabs. If you have 5 tabs that are opened and used, then the program actually creates 5 threads of the program, this concept is called multithreaded.

0
Nov 01 '17 at 12:41 on
source share

Multitasking * (time sharing) *:

Time shared systems allows many users to share the computer simultaneously. 
-one
Apr 30 '12 at 11:34
source share

Multitasking: - It processes several tasks or tasks at the same time. In this case, the user can interact with the system.

Multiprogramming: - It manages several programs at the same time and cannot interact with the system, it all depends on the OS (operating system).

-one
Jun 25 '13 at 8:20
source share

Multiprogramming is a process when a computer system performs different tasks simultaneously in one computer system.

-one
Jul 20 '13 at 12:13
source share

Multiprogramming: - , in which the execution of several tasks by the same computer is not performed simultaneously.

.

Multitasking: - o / s, in which several tasks are simultaneously performed.

.

-3
Jul 25 '13 at 16:46
source share



All Articles