Difficulty: 6/10worker_threads API, thread communication, performancejavascriptCopyScenario Questions0-2 years experience1We need to offload a CPU‑intensive image resize operation. How would you set up a Worker thread in Node.js to handle a single image file?2If you spawn a Worker and forget to call worker.terminate(), what will happen when the main process exits?2-5 years experience1Your new feature processes user‑uploaded CSV files in parallel using Worker threads, but you notice occasional 'ERR_WORKER_NOT_RUNNING' errors. Walk me through how you'd debug this.Follow-up QuestionsHow do you propagate errors from a Worker back to the main thread?What metrics would you collect to monitor Worker performance and health?How would you test the correctness and performance of your Worker implementation?Suggest Improvement