Files

8 lines
377 B
Plaintext

The restaurant rejects while the customer cancels, 2000 rounds
==============================================================
The thread released first tends to win, so the two roles swap threads every round to exercise both orders.
Who wins depends on timing; that exactly one wins, and that stock comes back once, never does.
rounds: 2000, reject won 1000, cancel won 1000