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