Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2001 11:17:46 -0800
From:      Jeff Roberson <jeff@midstream.com>
To:        'Alfred Perlstein' <bright@wintelcom.net>
Cc:        "'freebsd-hackers@freebsd.org'" <freebsd-hackers@freebsd.org>
Subject:   RE: Kevents/libc_r ?
Message-ID:  <31E4B6337A4FD411BD45000102472E0C05E74D@EMAIL_SERVER>

next in thread | raw e-mail | index | archive | help
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 <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
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: Kevents/libc_r ?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Is that true in -CURRENT as well?&nbsp; It looks to =
me like it calls kevents with a 0 timespec and then calls into the =
scheduler.</FONT></P>

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

</BODY>
</HTML>
------_=_NextPart_001_01C08AF1.58E8D770--


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?31E4B6337A4FD411BD45000102472E0C05E74D>