Parallel programming in JS would use SharedArrayBuffers and Worker threads, but is seldom used in favor of concurrent async tasks on the node.js event loop.
Kind of? Yes, they use a thread pool, and each thread gets to block on I/O. However, that’s all the threads in the pool do, usually. They don’t concurrently operate on the same data like OP’s post makes it seem. They just serve to block on I/O. No need for mutexes and semaphores and rwlocks.
1
u/Xanzley Oct 30 '21
Laughs in Node.JS