How does nodejs handle a non-blocking I / O event, although it is single-threaded?

I'm new to js node. I want to know how nodejs handles a non-blocking I / O event, although it is single-threaded. Many articles went through, but nevertheless I did not clarify my doubts.

Please explain this with an example / chart, which would be great. Thanks in advance.

+4
source share
3 answers

Node JS Single Threaded Event Loop Model.

See here for more details .

A few more links that will help you as follows:

Hope this helps you!

+2
source

Node JS , , 1 . , -.

/ , .

+1

, node js.

0

Source: https://habr.com/ru/post/1652971/


All Articles