Library “libuv”
Is a C library that Node.js uses to implement:
1) asynchronous I/O,
2) event loop,
3) file system, networking, sockets, timers, etc.
How many libuv working threads are there in Node.js?
Default 4
Can be increased to 1024
Previously it was up to 128
These are all libuv limitations
Each thread runs on 1 processor core
How to increase the number of libuv working threads ?
process.env.UV_THREADPOOL_SIZE =
С++ Bindings
C++ bindings in Node.js are a bridge between JavaScript and C++ that allow you to call native code directly from Node.js, usually to improve performance or access system capabilities.
True or False, libuv automatically places blocking operations in a separate thread when working with event loop
True