Do nodejs async functions use all CPU cores?
问题 If I use async functions, or functions with callbacks like the native fs module, http etc, will they run by default across all cpu cores? Or the entire thing will just use 1 core? 回答1: Some asynchronous operations in node.js (such as file I/O in the fs module) will use additional threads within the node.js process via a thread pool in libuv. It would depend upon the size of your thread pool and what types of operations and upon your host OS for how many additional CPUs will be engaged. It