Internals of node.js. How does it actually work

前端 未结 2 699
攒了一身酷
攒了一身酷 2020-12-25 14:08

Perhaps somebody who implemented node.js module can explain the protocol between node.js queue processed on a single thread and a blocking IO operations that will be perform

2条回答
  •  再見小時候
    2020-12-25 14:51

    I highly suspect that Node.JS goes the same route as Twisted and uses only non-blocking IO and greenlets. OS threads seem pretty inefficient for this sort of thing.

提交回复
热议问题