Share via


What is difference between Multi Threading and Parallel Programming and Asynchronous Programming ?

Question

Saturday, August 10, 2013 6:25 PM

Hi,

What is difference between Multi Threading and Parallel Programming and Asynchronous Programming ?

All replies (3)

Saturday, August 10, 2013 8:27 PM ✅Answered

The answer to this question is a little complex; I will try to simplify it:

Multithreading: an environment/hardware architecture that allows the efficient execution of multiple threads (i.e., independent programming units): http://en.wikipedia.org/wiki/Multithreading_(computer_architecture)

Parallel programming: multiple threads solve simultaneously a problem to improve performances (e.g., searching the solution of a math problem, sort a list with quicksort)

Asynchronous programming: usually it is used with slow tasks and when you don't want to lock other tasks of your application. For example, you want that the UI of your application remains responsive while downloading something from the Internet.


Tuesday, August 13, 2013 12:25 PM ✅Answered

Like the answer in this thread said, Multithreading is parallel, but Parallel Programming is not necessarily multithreading.

And Multithreading is the base of Asynchronous Programming.

And what's the relationship between Parallel Programming and Asynchronous Programming? Please take a look at this thread:http://stackoverflow.com/questions/12434369/what-is-the-relation-between-asynchronous-and-parallel-programming-in-c

Caillen
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Sunday, August 11, 2013 12:06 PM

No other comments?