Control: the same idea without a lock (timing dependent: the figure differs every run) ====================================================================================== expected total: 1600000 actual total: 740725 updates lost: 859275 (always zero or more, and usually well above zero)