I’ve read some blog articles and documentation in Node.js’s official docs. They mention that Node.js uses threads from a thread pool when handling blocking tasks.
Another confusing part is that all asynchronous functions run on separate threads? such as setTimeout
, fetch
, or any network call.
Is there any way to visualize how many threads are being used or to write logs when a thread is used or left?