Message-ID: <5LlJ0X$XTj@newsmth.net>
Subject: Re: [问题]socket编程,关于I/O复用中select和poll
Date: Sun, 26 Jan 2014 12:10:09 +0000
From: AnneSun@newsmth.net-SPAM.no (AnneSun)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.network.programming.20141003.mbox.gz!border1.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsgate.cuhk.edu.hk!news.neu.edu.cn!news.newsmth.net!NEWSMTH
Newsgroups: cn.bbs.comp.network.programming
Organization: 水木社区
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: NetPRG/c/M.1390738209.d0
Lines: 12
X-Original-Bytes: 870
Xref: 74.82.202.154 cn.bbs.comp.network.programming:13392

这么说来用select会慢?
poll呢?
select和poll能混用吗?目前测试server用poll,client用select,貌似也可以的。

epoll/kqueue这两个需要再看看

【 在 Orpherus 的大作中提到: 】
: 不在意性能用select,在意性能用epoll/kqueue
: 

--

※ 来源:·水木社区 http://www.newsmth.net·[FROM: 124.126.245.*]