Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2001 11:20:55 -0800
From:      "'Alfred Perlstein'" <bright@wintelcom.net>
To:        Jeff Roberson <jeff@midstream.com>
Cc:        "'freebsd-hackers@freebsd.org'" <freebsd-hackers@freebsd.org>
Subject:   Re: Kevents/libc_r ?
Message-ID:  <20010130112055.U26076@fw.wintelcom.net>
In-Reply-To: <31E4B6337A4FD411BD45000102472E0C05E74D@EMAIL_SERVER>; from jeff@midstream.com on Tue, Jan 30, 2001 at 11:17:46AM -0800
References:  <31E4B6337A4FD411BD45000102472E0C05E74D@EMAIL_SERVER>

next in thread | previous in thread | raw e-mail | index | archive | help
* Jeff Roberson <jeff@midstream.com> [010130 11:15] wrote:
> 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.

libc_r tries most operations non-blocking before resorting to using
poll(), this is what it's doing.


> 
> > * 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."

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010130112055.U26076>