Hacker News new | ask | show | jobs
by remram 418 days ago
A tokio task is not a thread
1 comments

A node worker_thread is not a thread either though :]
Right at the top of the docs for worker_threads:

> The node:worker_threads module enables the use of threads that execute JavaScript in parallel.

Now that it doesn’t say “concurrent”, it says “parallel”. This implies that multiple threads are involved.

Really? The docs make it seems like it is: https://nodejs.org/api/worker_threads.html#worker-threads