Re: pthreads and poll()

2001-08-14 Thread Jonathan Chen
On Mon, Aug 13, 2001 at 01:18:52PM -0400, Daniel M. Eischen wrote: We don't provide locking for fd's any longer (I thought this was only in -current, but your results seem to indicate otherwise). If we did, only one thread would wake up. The mistake in your sample seems to be that you're

Re: pthreads and poll()

2001-08-14 Thread John Polstra
In article [EMAIL PROTECTED], Jonathan Chen [EMAIL PROTECTED] wrote: Incidentally, I'm still curious, what does the POSIX spec say all this? As far as I know, poll is not described by any POSIX standards. John -- John Polstra [EMAIL

Re: pthreads and poll()

2001-08-14 Thread Daniel Eischen
On Tue, 14 Aug 2001, Jonathan Chen wrote: On Mon, Aug 13, 2001 at 01:18:52PM -0400, Daniel M. Eischen wrote: We don't provide locking for fd's any longer (I thought this was only in -current, but your results seem to indicate otherwise). If we did, only one thread would wake up. The

Re: pthreads and poll()

2001-08-14 Thread Terry Lambert
Daniel M. Eischen wrote: We don't provide locking for fd's any longer (I thought this was only in -current, but your results seem to indicate otherwise). If we did, only one thread would wake up. The mistake in your sample seems to be that you're having all threads block on the same fd.

Re: pthreads and poll()

2001-08-14 Thread Zach Brown
[pulls out his dead horse..] one thread would wake up. The mistake in your sample seems to be that you're having all threads block on the same fd. Why? Probably he has a bunch of daemons waiting around for work to do (e.g. HTTP daemons all listening for connections to accept on the

Re: pthreads and poll()

2001-08-14 Thread Alfred Perlstein
* Zach Brown [EMAIL PROTECTED] [010814 17:42] wrote: [pulls out his dead horse..] one thread would wake up. The mistake in your sample seems to be that you're having all threads block on the same fd. Why? Probably he has a bunch of daemons waiting around for work to do (e.g.

pthreads and poll()

2001-08-13 Thread Jonathan Chen
Yesterday marked my first attempt at mixing poll() with pthreads. Needless to say, things did not work out the way I wanted them to. So, I began the task of finding out the behaviors of various OSes to see if my code would run fine on them. For your reference and amusement, my results

Re: pthreads and poll()

2001-08-13 Thread Daniel M. Eischen
Jonathan Chen wrote: Yesterday marked my first attempt at mixing poll() with pthreads. Needless to say, things did not work out the way I wanted them to. So, I began the task of finding out the behaviors of various OSes to see if my code would run fine on them. For your reference