[Shootout-list] Re: ring of processes
   
    Aaron Denney
     
    wnoise@ofb.net
       
    Sun, 3 Oct 2004 01:22:55 +0000 (UTC)
    
    
  
On 2004-10-03, Brent Fulgham <bfulgham@debian.org> wrote:
> On 2004-10-02 17:35:11 -0700 Brent Fulgham <bfulgham@debian.org> wrote:
>
>> I've used my pathetic Haskell skills to modify it somewhat.  I'm not 
>> sure if 
>> this even works (it sure takes a long time to run), but this is a bit 
>> closer to the 
>> intent of the haskell version.
>
> Of course, I meant the Erlang version.
>
> It does seem to work (at least, it does produce the expected output).  
> But it is *extremely*  slow.
It's not correct, but the use of channels rather than MVars hides this.
You never read the low-priority channels in the slaves, and send a new
low priority message for every high-priority message.
It locks up when they're changed to MVars.  And my original speeds up
quite a bit.
I'll send an updated version out soon.
-- 
Aaron Denney
-><-