Explain blocking and non-blocking operations?



Explain blocking and non-blocking operations?..

Answer / Rahul Ranjan

Blocking operations are synchronous tasks that pause the execution of other code while they complete, making them unsuitable for handling multiple requests or performing time-consuming tasks. Non-blocking operations (also known as asynchronous operations) allow the rest of the code to continue executing while waiting for a response or completion from an operation. Node.js excels at handling non-blocking operations, making it ideal for building high-performance applications.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

How to protect node js source code?

1 Answers  


What is Buffer in Node.js?

1 Answers  


What is the purpose of cleartimeout function?

1 Answers  


How to run multiple node js files?

1 Answers  


Explain event loop in node js?

1 Answers  


Is node js and javascript same?

1 Answers  


What tool and ide is used for node.js?

1 Answers  


What is the difference between reactjs and nodejs?

1 Answers  


What is require in Node.js? How will you load external files and libraries in Node.js?

1 Answers  


Is callback function asynchronous?

1 Answers  


What is node red used for?

1 Answers  


Explain module.exports in node js?

1 Answers  


Categories