4 ms·
If you are talking about nodejs, there is https://nodejs.org/api/child_process.html https://nodejs.org/api/child_process.html Same way that python does paralle
by ActorNightly 2y ago
If you are talking about nodejs, there is https://nodejs.org/api/child_process.html https://nodejs.org/api/child_process.html
Same way that python does parallelism, by relying on the underlying OS to schedule threads and use multiple cores.
For JS running in browser, you probably don't want any allowance for such scheduling in the scripts, and let the JS engine in the browser automatically establish parallelism if needed.