Multi-threaded vs Multi-process parallelism : How to choose what's RIGHT ?

So, how we decide which one to choose?

For that, we need to understand one more thing :
=> Is it CPU bound or I/O bound program ?

  • Sensitive to speed of CPU, so keep it PARALLEL and use multi-processing.
  • Multi-processing means a new process is started independent from first process
  • Memory is not shared between processes

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
svalak

svalak

Passionate about learning ; Will write about #systemdesign #DSA #algorithms #linuxinternals #technology; Painting/Poem writing are my hobbies; Voracious Reader