What is the use of method – 'fork()'?



What is the use of method – 'fork()'?..

Answer / Chandrapal Singh

The `fork()` method in Node.js is used to create a new child process that runs the same JavaScript file as its parent. It's often used for running long-running tasks without blocking the main event loop, allowing the application to remain responsive.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

Explain 'Net' module in Node.JS?

1 Answers  


What Is Package.json?

1 Answers  


Explain web server?

1 Answers  


What is the difference between angular and node.js?

1 Answers  


What do you mean by the term i/o in node.js?

1 Answers  


For node.js, why google uses v8 engine?

1 Answers  


How node.js works?

1 Answers  


Give an example of readable stream with non-flowing mode in node.js?

1 Answers  


Which template engine is supported by express js?

1 Answers  


Explain the difference between const and let in node js?

1 Answers  


Is there any system configration needed to install node js?

1 Answers  


What do you understand by middleware? How can you use middleware in node js?

1 Answers  


Categories