Node.js · Middle · Question 5 of 75
What does the libuv thread pool handle by default?
- ✓Correct answer: File system operations,
dns.lookup, somecrypto(likepbkdf2,scrypt) andzlibwork - 2All JavaScript code that takes longer than 10 ms
- 3All network sockets
Explanation
Network sockets use the OS's async mechanisms (epoll, kqueue, IOCP) and don't need the pool. The pool has 4 threads by default, configurable with UV_THREADPOOL_SIZE.