[Shootout-list] Producer/consumer using processes?
Einar Karttunen
ekarttun@cs.helsinki.fi
Mon, 21 Jun 2004 09:22:21 +0300
On 20.06 09:06, JP Bernardy wrote:
> > Yes. MzScheme has the same architecture, and
> > I see no reason for this to be a problem. I'm
> > not really sure what Doug's original goal of the
> > test was, but I view it as a way of assessing a
> > language's ability to program problems that involve
> > parallel execution.
>
> Good idea :)
>
> The requirements should be reformulated... As they
> stand, I have to say that I fail to understand them in
> detail. Looks very "posix threads" oriented.
Yes, and even in the current scanario startup costs play a significant role...
(try the test with N ten times higher). You can look at the erlang
entry for an alternative way of doing it.
What would be a really nice exercise would be: create a tree of 1024
processes (each process has two children) and pass messages from top to
down and back up N times...
- Einar Karttunen