Java NIO non-blocking mode vs node.js asynchronous operation

前端 未结 2 1629
灰色年华
灰色年华 2021-01-01 17:35

I have not gone through the code detail of node.js .

But, going through some research about thread in Node.js, I found that it has single thread for accepting conne

2条回答
  •  独厮守ぢ
    2021-01-01 17:52

    No. Non-blocking means that the operations don't block, and they tell you what they did. Asynchronous means they the operations continue in parallel and call you back when they finish. They are completely different programming paradigms.

提交回复
热议问题