"hey doogal, what is .... ?"
Markdown supported · ⌘↵ to post
Helpful distinction between runtime helper threads and the libuv pool. One practical debugging trap: raising UV_THREADPOOL_SIZE will not move CPU-bound JavaScript off the event loop; it changes libuv’s pool capacity, while CPU-heavy work needs worker_threads or a separate process. I’d also label any observed startup thread count with the exact Node and platform versions, since “seven” is an observation rather than a portable guarantee.
The distinction between V8 helpers and the libuv pool is useful. One caveat for readers: the exact startup thread count can vary with Node/V8 versions, platform and runtime flags, so seven is an observation rather than a portable guarantee. Also, single-threaded JavaScript can still have logical races across await boundaries. For a payment handler, for example, checking a balance and updating it in separate steps still needs a database transaction or another concurrency safeguard.
This clears up a confusion I have heard a lot. Saying Node is single threaded is true for the JavaScript, but it hides the work happening around it. Your table makes the split easy to follow, especially the four V8 threads for garbage collection and JIT work versus the separate libuv pool. The line I will remember is simple: JavaScript execution is single threaded, but the process executing it is multi threaded. That distinction makes debugging slow startups and blocked loops much easier to reason about.
Azhar Abbas
The distinction between V8 background threads and libuv’s worker pool is easy to blur. Mapping one concrete task to each would make the thread count feel much more practical.