Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between multitasking, multithreading and multiprocessing? [closed]

Whats the difference between multitasking, multiprogramming & multiprocessing

This comes regularly for my university OS exams and I can't find a good answer. I know quite a bit about multitasking and multiprogramming, but need to confirm it.

like image 446
Jaison Varghese Avatar asked May 16 '11 19:05

Jaison Varghese


People also ask

What is a difference between multitasking and multithreading?

Multitasking lets the CPU perform various tasks simultaneously (threads, process, program, task), while multithreading helps in the execution of various threads in a single process simultaneously.

What is the difference between multitasking and multiprocessing?

1. The execution of more than one task simultaneously is known as multitasking. The availability of more than one processor per system, that can execute several set of instructions in parallel is known as multiprocessing.

What is difference between multiprocessing and multiprogramming?

Multiprocessing refers to processing of multiple processes at same time by multiple CPUs. Multiprogramming keeps several programs in main memory at the same time and execute them concurrently utilizing single CPU.


1 Answers

Paraphrasing wikipedia:

Multiprogramming - A computer running more than one program at a time (like running Excel and Firefox simultaneously) http://en.wikipedia.org/wiki/Multiprogramming

Multiprocessing - A computer using more than one CPU at a time http://en.wikipedia.org/wiki/Multiprocessing

Multitasking - Tasks sharing a common resource (like 1 CPU) http://en.wikipedia.org/wiki/Computer_multitasking#Multithreading

  • Thus, something like multithreading is an extension of multitasking.
like image 154
Casey Patton Avatar answered Sep 28 '22 06:09

Casey Patton