4 ms·
Isn't Node single threaded, just like Python?
by pid-1 3y ago
Isn't Node single threaded, just like Python?
- krylon 3y agoPython is technically multithreaded, but the GIL means only one thread can execute interpreter code at a time. If you use libraries written in C/C++, the library code can run in multiple threads simultaneously if they release the GIL. I vaguely recall Node used to run multiple threads under the hood for disk I/O, but it might use kqueue/epoll these days.
- strictfp 3y agoNode is essentially a single-threaded API to a very capable multithreaded engine. https://youtu.be/ztspvPYybIY https://youtu.be/ztspvPYybIY