c10k

听说oracle向google索赔26亿的java侵权费,java快黄了,赶紧转c吧~~
参考:http://www.kegel.com/c10k.html#top
c10k就是同时处理几万的client,
io框架:
1.ACE (重量级)
2.ASIO  Boost的一部分
3.libevent 轻量级  kqueue && select
4.poller  rn 轻量级
5.构建可扩展服务器时, balance the use of worker thread and event-driven★★★
6
-----------
Serve many clients with each thread
每个线程多个客户端:
-------------- use nonblocking I/O and level-triggered readiness notification
select()
poll()
/dev/poll  
kqueue()
-------------- use nonblocking I/O and readiness change notification
kqueue()
epoll
Realtime Signals
Signal-per-fd
-------use asynchronous I/O
aio
----------Serve one client with each server thread

猜你喜欢

转载自haoningabc.iteye.com/blog/1111665