16 buyers, 10 portions, 5000 rounds =================================== Timing dependent: the naive counts differ from run to run; the locked counts never do. naive (check, then write): rounds that sold more than 10: 29 of 5000, worst round sold 16 locked (check and write together): rounds that oversold: 0, undersold: 0 of 5000