It is worth mentioning that threads can be a possible alternative to processes when running CPU-bound tasks. Currently, there are a few npm packages that expose an API for working with threads to userland modules; one of the most popular is webworker-threads (https://npmjs.org/package/webworker-threads). However, even if threads are more lightweight, full-fledged processes can offer more flexibility and a better level of isolation in the case of problems such as freezing or crashing.