Subject: RE: [Spruce-list] FreeBSD compile problem - possible solution
To: Ezra Story <ezra.story@speechworks.com>
From: Rob Mohr <rob.mohr@cat-1.com>
List: tech-pkg
Date: 04/25/2000 11:02:30
From the GNU Pth documentation:

"Pth increases the responsiveness and concurrency of an event-driven
application, but NOT the concurrency of number-crunching applications.  The
reason is the non-preemptive scheduling. Number-crunching applications
usually require preemptive scheduling to achieve concurrency because of
their long CPU bursts. For them, non-preemptive scheduling (even together
with explicit yielding) provides only the old concept of `coroutines'. On
the other hand, event driven applications benefit greatly from
non-preemptive scheduling. They have only short CPU bursts and lots of
events to wait on, and this way run faster under non-preemptive scheduling
because no unnecessary context switching occurs, as it is the case for
preemptive scheduling. That's why Pth is mainly intended for server type
applications, although there is no technical restriction."

Correct me if I'm wrong, but wouldn't Spruce fall under the category of
event-driven applications that *could* benefit from the non-preemptive
scheduling model used by Pth? (if Jeff decided to design it to that model)

Rob Mohr

-----Original Message-----
From: tech-pkg-owner@netbsd.org [mailto:tech-pkg-owner@netbsd.org]On
Behalf Of Rob Mohr
Sent: Tuesday, April 25, 2000 10:42 AM
To: Ezra Story
Cc: spruce-list-admin@lists.sourceforge.net; tech-pkg@netbsd.org;
fejj@stampede.org
Subject: RE: [Spruce-list] FreeBSD compile problem - possible solution


Ezra,

Arrrrgh.  Well, so much for that idea.  *sigh*  And here I thought those GNU
guys generally had thier sh*t together...

Rob

-----Original Message-----
From: spruce-list-admin@lists.sourceforge.net
[mailto:spruce-list-admin@lists.sourceforge.net]On Behalf Of Ezra Story
Sent: Tuesday, April 25, 2000 10:25 AM
To: Robert D. Mohr
Cc: fejj@stampede.org; spruce-list@lists.sourceforge.net;
tech-pkg@netbsd.org
Subject: Re: [Spruce-list] FreeBSD compile problem - possible solution


"Robert D. Mohr" wrote:
>
> Just noticed that there *is* another POSIX threads package for NetBSD...
> GNU Pth - The GNU Portable Threads.  I'm trying to build that on my
machine
> now...  Not sure how I'll get the NetBSD Spruce package installer to
> recognize that it's there...
>
> NetBSD package guys... any ideas?

GNU Pth is cooperatively switched, which makes it basically useless for
most
things that use pthreads, including spruce.  (Yes, I tried it).

Ezra

_______________________________________________
Spruce-list mailing list
Spruce-list@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/spruce-list