3 ms·
A tokio task is not a thread
by remram 1y ago
A tokio task is not a thread
- inglor 1y agoA node worker_thread is not a thread either though :]
- remram 1y agoReally? The docs make it seems like it is: https://nodejs.org/api/worker_threads.html#worker-threads https://nodejs.org/api/worker_threads.html#worker-threads
- cstrahan 1y agoRight 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.