From owner-freebsd-hackers Tue Jan 30 11:15:31 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from email_server.midstream.com (unknown [63.113.115.195]) by hub.freebsd.org (Postfix) with ESMTP id B605E37B6AD for ; Tue, 30 Jan 2001 11:15:10 -0800 (PST) Received: by EMAIL_SERVER with Internet Mail Service (5.5.2650.21) id ; Tue, 30 Jan 2001 11:17:55 -0800 Message-ID: <31E4B6337A4FD411BD45000102472E0C05E74D@EMAIL_SERVER> From: Jeff Roberson To: 'Alfred Perlstein' Cc: "'freebsd-hackers@freebsd.org'" Subject: RE: Kevents/libc_r ? Date: Tue, 30 Jan 2001 11:17:46 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C08AF1.58E8D770" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C08AF1.58E8D770 Content-Type: text/plain; charset="iso-8859-1" Is that true in -CURRENT as well? It looks to me like it calls kevents with a 0 timespec and then calls into the scheduler. > * Jeff Roberson [010130 11:05] wrote: > > Does anyone know if it's safe to use kevents with pthreads yet? I poked > > around and saw that it is handled in libc_r/uthread, but I also noticed that > > my process that should be waiting in kqread is actually waiting in poll. If > > I remove -pthread from the compile line it waits in kqread again! Is > > pthreads just using poll for timeouts? > > pthreads puts the kevent into the array of pollfds that it uses to > do non-blocking operations. > > -- > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] > "I have the heart of a child; I keep it in a jar on my desk." ------_=_NextPart_001_01C08AF1.58E8D770 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Kevents/libc_r ?

Is that true in -CURRENT as well?  It looks to = me like it calls kevents with a 0 timespec and then calls into the = scheduler.

> * Jeff Roberson <jeff@midstream.com> = [010130 11:05] wrote:
> > Does anyone know if it's safe to use = kevents with pthreads yet?  I poked
> > around and saw that it is handled in = libc_r/uthread, but I also noticed that
> > my process that should be waiting in = kqread is actually waiting in poll.  If
> > I remove -pthread from the compile line it = waits in kqread again!  Is
> > pthreads just using poll for = timeouts?
>
> pthreads puts the kevent into the array of = pollfds that it uses to
> do non-blocking operations.
>
> --
> -Alfred Perlstein - = [bright@wintelcom.net|alfred@freebsd.org]
> "I have the heart of a child; I keep it in = a jar on my desk."

------_=_NextPart_001_01C08AF1.58E8D770-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message