Click here to Skip to main content
15,891,597 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hey Guys,

I am bit confused about Multiprocessing and Multithreading concepts. I hope if you have any good tutorial/explanation for same.

Thanks
Amrit
Posted

1 solution

Multiprocessing is the use of two or more central processing units (CPUs) within a single computer system. Multithreading allows multiple threads to exist within the context of a single process. These threads share the process's resources, but are able to execute independently.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 27-Feb-15 19:06pm    
Sorry, but the first statement is not true, just a purely false statement. Multithreading works even on a single CPU core through time slicing, or time-division multiplexing. Moreover, on multiple cores and even multiple processing, multithreading also uses time

Was that so difficult to read on the topic? Please see:
http://en.wikipedia.org/wiki/Multithreading_%28computer_architecture%29
http://en.wikipedia.org/wiki/Multithreading_(software)
http://en.wikipedia.org/wiki/Time-division_multiplexing

Please feel more responsibility for your answers. Remember you can easily confuse some naive readers.

—SA
dpminusa 27-Feb-15 20:11pm    
Sergey thanks for your advice. I was intending to communicate that multiprocessing is multiple processor related and multithreading is multiple threads on one or more processors. I am not sure your comment says anything different. Let's help each other by not including parentheticals like "was that so hard". It can make you seem like a thread bully. It does not help anyone. Thanks.
Sergey Alexandrovich Kryukov 27-Feb-15 20:24pm    
As I misread part of your answer, I apologize and fix my down-vote. As to your personal characterization, I would advise to be more careful, not jump to conclusion. If I say "ways that so hard", I really, literally wonder if it was so hard and really think that the person I address (I'm not sure that you talk about yourself) it to really could use a little kick like that. But in this particular case, as I explain, it was just because of my mistake I apologize for. If you have different opinion, this is not yet a reason for far-reaching conclusions. Again, sorry for the mistake, hope we're all right...
—SA
dpminusa 27-Feb-15 20:37pm    
We are fine - мой друг.
Sergey Alexandrovich Kryukov 27-Feb-15 20:43pm    
:-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900