Subject: RE: [Spruce-list] FreeBSD compile problem - possible solution
To: Ezra Story <>
From: Rob Mohr <>
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: []On
Behalf Of Rob Mohr
Sent: Tuesday, April 25, 2000 10:42 AM
To: Ezra Story
Subject: RE: [Spruce-list] FreeBSD compile problem - possible solution


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


-----Original Message-----
[]On Behalf Of Ezra Story
Sent: Tuesday, April 25, 2000 10:25 AM
To: Robert D. Mohr
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
> 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
things that use pthreads, including spruce.  (Yes, I tried it).


Spruce-list mailing list