<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
It looks to me like poll is usually preferred over select?<BR>
It appears to be standard and widely available.<BR>
  Appears to be *BSD, Solaris, Linux, Interix, AIX, Irix.<BR>
   At least searching the web and checking headers.<BR>
It has no limit on the number or value of file descriptors waited on.<BR>
It does use more memory for its parameters and more time to construct and read them.<BR>
However I believe we only ever select/poll either<BR>
  one file at a time on pthreads <BR>
  one file per thread on user threads <BR>
 <BR>
 <BR>
There are other better mechanisms -- /dev/poll on Solaris, kqueue on FreeBSD and maybe others, epoll on Linux.<BR>
Though these are mostly (completely?) concerned with scaling to waiting on large number of file descriptors.<BR>
 <BR>
 <BR>
I think I'll change over to poll very soon.<BR>
 <BR>
 <BR>
I haven't yet figured out if select's read/write/except maps directly to poll's flags.<BR>
I'm guessing:<BR>
  select read => poll POLLIN or maybe POLLPRI also?<BR>
  select write =>  poll POLLOUT<BR>
  select except => POLLERR or maybe POLLHUP also?<BR>
 <BR>
I haven't yet found a description of "error conditions" with respect to select.<BR>
Still looking.<BR>
 <BR>
 - Jay<BR><BR>                                           </body>
</html>