Problem 1116 · Medium

Print Zero Even Odd

Three threads print 0, odd and even numbers in the sequence 010203…, handing control back to zero after each number.

Open the interactive visualisation