[Shootout-list] Re: ring of processes
Raymond Racine
rracine@adelphia.net
Sun, 03 Oct 2004 13:06:28 -0400
I am not clear on the ring of process test.
I am reading the test description as follows for a slave process. By
interpreting the test description, I mean reading the pseudo code and
its accompanying text.
In the algo below, "I" is an arbitrary slave process.
- If I receive a hipri msg, send it on immediately after verifying the
proper sender. Increment my count of hipri msgs received.
- As long as my hipri message count is < 10, I am in the state of hard
working. (See paragraph 4. para 2 in the description.)
- If the number of hipri msgs I have received is < 10, then ignore
incoming lopri messages. But I am not to discard them, as they are to
be processed later when I am no longer hardworking (hipri count >= 10)
- When I have received 10 hipri msgs I am no longer hard working. I now
continue to process hipri messages AND now start processing my lopri
msgs (which were buffered) by sending them on unverified as to the
sender.
This is how the description reads to me. But it seems odd. Can someone
clarify the test?
Ray