看了一下午,很想写篇文总结下,但看得太多了,很多都没有深刻理解,暂且挖个坑吧

Keywords

  • 同步/异步,阻塞/非阻塞
  • Unix 网络编程 5 类 IO 模型:阻塞IO、非阻塞IO、IO多路复用(select/poll等)、信号驱动、异步IO(AIO)
  • epoll, kqueue, IOCP
  • multi processes/threads, coroutine - multi core (parallel), multi machine(distributed, MapReduce)
  • event-driven, NodeJs, Twisted
  • epoll: Tornado web server, Nginx
  • erlang, golang, stackless python, python(gevent eventlet greenlet), python(yield, next, send), lua

Reference

  • http://www.dabeaz.com/coroutines/
  • http://armsword.com/2013/09/14/io-synchronous-and-blocking.html
  • http://www.zhihu.com/question/19732473
  • http://pengjiaheng.iteye.com/blog/847615
  • http://blog.ez2learn.com/2010/07/17/talk-about-coroutine-and-gevent/
  • http://twistedmatrix.com/trac/
  • http://stackoverflow.com/questions/15526546/confusion-about-node-js-internal-asynchronous-i-o-mechanism
  • http://cnodejs.org/topic/4f16442ccae1f4aa2700113b
  • http://blog.mixu.net/2011/02/01/understanding-the-node-js-event-loop/
  • http://blog.codingnow.com/2006/04/iocp_kqueue_epoll.html
  • http://www.ibm.com/developerworks/cn/aix/library/1105_huangrg_kqueue/