Thank you! I'd been looking suspiciously at this routine as well due to
strange load-balancing behaviour that I saw while testing the fair group
code, but I hadn't yet tracked down the exact problem.
Peter/Ingo, this appears to explain the issues described in the mail I
sent on the 4th. After applying this change the imbalance between tasks
in the same group is substantially reduced.
Chris
--