The Computer Language
Benchmarks Game

thread-ring description

(Not included in summary comparisons)


A simplistic adaptation of Performance Measurements of Threads in Java and Processes in Erlang and A Benchmark Test for BCPL Style Coroutines.


Use OS threads or the language implementation pre-emptive lightweight threads.

As a practical matter, continuations & coroutines & cooperative threading will not be accepted.

Please don't implement your own custom "custom scheduler" or use "continuations" or "coroutines" or "cooperative threading" - they will not be accepted.

How to implement

We ask that contributed programs not only give the correct result, but also use the same algorithm to calculate that result.

Each program should:

diff program output N = 1000 with this output file to check your program output has the correct format, before you contribute your program.

Use a larger command line argument (50000000) to check program performance.