0

I've read that multiprocessing is often favored over multithreading on Unix based systems, and that this is due to Unix based systems being more efficient handling many processes as opposed to many threads (or that it is simply easier to manage many processes than many threads).

I've also read that Windows users prefer multithreading because Windows is less efficient with multiprocessing.

So if I'm on a Linux based server and need to pick between multiprocessing or multithreading, what is my best bet to maximize efficiency and effectiveness?

Fakhruddin Ujjainwala
  • 2,493
  • 17
  • 26
nicktendo
  • 587
  • 1
  • 9
  • 24
  • Thanks for the edit, Fakhruddin, good call :) – nicktendo Feb 25 '16 at 18:55
  • [Which is faster?](http://ericlippert.com/2012/12/17/performance-rant/) – Ivan Aksamentov - Drop Feb 25 '16 at 19:00
  • 2
    Where did you read 'multiprocessing is often favored over multithreading'? – Martin James Feb 25 '16 at 20:12
  • I wouldn't be surprised if the mulitprocessing over multithreading information is old (like pre-2.6 Linux when multithreading wasn't particularly implemented well on Linux, for example, LinuxThreads vs. NGPT vs. NPTL) – Michael Burr Feb 25 '16 at 20:38
  • @MartinJames I found a similar question here (http://stackoverflow.com/questions/16580244/performance-multithreaded-or-multiprocess-applications) alluding to the idea that it "doesn't make a big difference" performance wise on Linux. The notion that multiprocessing is often a preference is from other reading I've done over the past week or so, for which I don't have a specific reference at hand right now. – nicktendo Feb 25 '16 at 21:59

0 Answers0