Problem Statement
How does Node.js handle child threads?
Explanation
Node.js runs JavaScript on a single thread but can create child processes using `child_process` or worker threads. These allow parallel execution without blocking the event loop.
Code Solution
SolutionRead Only
const { Worker } = require('worker_threads');
new Worker('./task.js');