Clarification: the accepted threadring.d is written in win. I let 503 threads free roam. On my Pentium M 2200Mhz. 10.000.000 only costs ~10s. But on their P4, the result is 330s. If i changed to mutex, in win, it'll slower. But in linux, much faster. But they haven't accepted my new solution.