[Shootout-list] ring of processes

Brent Fulgham bfulg@pacbell.net
Mon, 04 Oct 2004 07:01:44 -0700


On 2004-10-04 05:48:12 -0700 Bengt Kleberg 
<bengt.kleberg@ericsson.com> wrote:

> i hope that it will not come as a big surprise if i have been 
> rethinking the 
> ring test in the light of the possible solutions offered by other 
> languages?

Perhaps the third time will be the charm? ;-)

> i suggest we use a ratio of 128 messages to each process, until 
> another 
> language show us that we need to change it upwards.
> in the test we create n number of process and send 128*n messages.

Fine.

> since the sender id is an important part of sys5 ipc (imho) i need to 
> change 
> the ring so that the sender is no longer silly. my suggestion is to 
> send in 
> both direction of the ring. this way the processes need to check from 
> where 
> the message comes to be able to send it onwards in the right 
> direction.

What about sending randomly within the ring?  These would be like 
'spokes' on the
ring -- a send from P1 to P100 and P5 to P72, for example.

-Brent