Node.js · Junior · Question 31 of 75

What does 'non-blocking I/O' mean in Node.js?

Explanation

While a file is being read or a database is answering, the main thread can serve other requests. Blocking calls like fs.readFileSync stop everything until they finish.

Further reading

Problem with a question

Node.js · Junior · question 31

Test yourself

Take the Node.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz