1

In Child process we fork process into many process for parallel processing, Also in the asynchronous programming we are executing many asynchronous code Parallelly.

So it means both are same . please help me to understand this

  • https://stackoverflow.com/questions/1050222/what-is-the-difference-between-concurrency-and-parallelism – dm03514 Dec 16 '19 at 17:07

1 Answers1

0

Not super sure if this is what your'e asking but: Each process running the node.js runtime will use the asynchronous runtime and execution model. If you have 2 underlying processors or hardware threads available then two node.js processes may execute in parallel. If only a single processor or hardware thread is available then it's not possible to achieve parallel execution, even with multiple node.js processes available.

  • Single node.js process & multiple cores/hardware threads & node.js threadpool (UV_THREADPOOL_SIZE) supported operations -> possibly parallel
  • Many node.js processes -> concurrent
  • Many node.js processes & Multiple cores/hardware threads -> possibly parallel
dm03514
  • 54,664
  • 18
  • 108
  • 145