delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/27/10:55:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 27 Aug 2002 10:54:58 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: poll function in cygwin
Message-ID: <20020827145458.GC10134@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <A220D2C5610C714BA00110F541A4ABD9012644CE AT home DOT fsoft DOT fpt DOT vn> <20020827111431 DOT T5475 AT cygbert DOT vinschen DOT de> <777081412 DOT 20020827132703 AT logos-m DOT ru> <20020827115845 DOT U5475 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
In-Reply-To: <20020827115845.U5475@cygbert.vinschen.de>
User-Agent: Mutt/1.3.23.1i

On Tue, Aug 27, 2002 at 11:58:45AM +0200, Corinna Vinschen wrote:
>On Tue, Aug 27, 2002 at 01:27:03PM +0400, Egor Duda wrote:
>> Tuesday, 27 August, 2002 Corinna Vinschen corinna-cygwin AT cygwin DOT com wrote:
>>CV> On Tue, Aug 27, 2002 at 02:33:40PM +0700, Nguyen Minh Sang wrote:
>>>>On cygwin, function: int poll(struct pollfd *ufds, unsigned int nfds,
>>>>int timeout);
>>>>
>>>>The maximum of nfds = ?
>>
>>CV> Theoretically there is no maximum.  In practice the maximum is a
>>CV> function of the memory available.
>>
>>I was thinking that maximum number of handles which can be waited via
>>WaitForMultipleObjects() is 64, thus limiting a number of handles that
>>can be select()ed.  It's probably possible to work around such
>>limitation in cygwin select() but either i've missed something or no
>>such workaround was created in cygwin code.
>
>Ahem, no, you're right.

Actually, it isn't that simple.  It depends on what you are waiting
for.  For instance, if you are waiting for pipes, you can wait for
an unlimited number of them.  If you ware waiting for sockets, I think
that is also true.  If you are waiting for console handles, then yes,
64 is the maximum.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019