c10k

听说oracle向google索赔26亿的java侵权费,java快黄了,赶紧转c吧~~

参考:http://www.kegel.com/c10k.html#top

c10k就是同时处理几万的client,

io框架:

1.ACE(重量级)

2.ASIOBoost的一部分

3.libevent轻量级kqueue&&select

4.pollerrn轻量级

5.构建可扩展服务器时,balancetheuseofworkerthreadandevent-driven★★★

6

-----------

Servemanyclientswitheachthread

每个线程多个客户端:

--------------usenonblockingI/Oandlevel-triggeredreadinessnotification

select()

poll()

/dev/poll

kqueue()

--------------usenonblockingI/Oandreadinesschangenotification

kqueue()

epoll

RealtimeSignals

Signal-per-fd

-------useasynchronousI/O

aio

----------Serveoneclientwitheachserverthread

相关推荐