[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] thread scheduling: how about an idle-thread-hook?

From: felix
Subject: Re: [Chicken-users] thread scheduling: how about an idle-thread-hook?
Date: Fri, 09 Aug 2002 22:58:23 +0200

"Perry E. Metzger" wrote:
> "felix" <address@hidden> writes:
> > But multithreading is mightly in fashion these days.
> So is writing code in C and C++....
> Don't get me wrong. Multithreading has a couple of important uses. For
> instance, without using kernel assisted pthreads (not call/cc threads)
> you can't use both processors on your MP hardware in the same
> process. However, that's another story....

Oh, I don't claim the opposite. But this is an ever-occuring dispute
on c.l.s: threads via call/cc vs. SMP. It would be interesting to
compare the performance of
a) True OS-level threads on MP hardware
b) Scheme-level threads, pooled on different processors, communicating
  via a hacked up interprocess communication scheme.

The former is definitely cleaner, but is it really faster, especially
with a fast (necessarily low-level) shared-memory communication
and with a *large* number of threads?

(this is purely hypothetical, of course. I'm not an expert with these
things, but I would like to see some numbers)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]