In the case of the counter, the speculative step is the increment — it fetches and adds one to the old value in the hopes that the value will not change while the update is being computed.
在计数器的示例中,冒险的步骤是递增——它检索旧值并在旧值上加一,希望在计算更新期间值不会变化。
2
Perhaps in this case, we could use a timestamp or just increment a counter for each runner, such as runner_1, runner_2, etc.