Wednesday 25 January 2017

Multithreading?

I know "the point" of node is its async, non-blocking events and file system model. However, some tasks (e.g. image processing) require performing many thousands or millions of sometimes complex computations on in-memory objects and does not benefit from this model.Languages like C# allow you to turn for loops into Parallel.For loops which spin off worker threads and handle the gritty parts for you, while allowing complete utilization of an arbitrary number of cores.From a cursory google, node does not have this. There are some libraries on npm for e.g. tasks, but nothing that allows multithreaded computation with resources shared between the threads. Is this possible in node?

Submitted January 25, 2017 at 07:03PM by BDube_Lensman

No comments:

Post a Comment