Web Development
Node.js
Subjective
Aug 16, 2025
Explain the concept of worker threads in Node.js.
Detailed Explanation
Worker threads enable parallel JavaScript execution for CPU-intensive tasks. Use worker_threads module. Main thread communicates via message passing. Benefits: true parallelism, don't block event loop, shared memory with SharedArrayBuffer.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts