What’s the difference between multiprocessing and multithreading?

329 views

What’s the difference between multiprocessing and multithreading?

In: 194

17 Answers

Anonymous 0 Comments

Imagine you’re a pizza baker
* Multithreading: You take one pizza ball, stretch it, top it and put it in the oven. While that pie bakes, you work on your second pizza and so on (you are *concurrently* working on pizzas)

* Multiprocessing: You hire 4 more people, give them all the instructions and you work on your own pizza while they work on theirs (pizzas are being prepared in *parallel*)

You are viewing 1 out of 17 answers, click here to view all answers.