阅读背景:

单线程事件驱动的web服务器(如node.js)如何在套接字级别上工作?

来源:互联网 

So I keep hearing from friends how node.js somehow does everything using a single thread. By that, I assume it means that it accepts new socket connections via a looping thread that waits on an "accept" method (like most web servers), and then rather than delegating the socket it receives to a new thread for handling, it somehow gets a single thread to handle all the connections.So I keep hearing from friends how node.js some




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: