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.
在计数器的示例中,冒险的步骤是递增——它检索旧值并在旧值上加一,希望在计算更新期间值不会变化。
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.
在计数器的示例中,冒险的步骤是递增——它检索旧值并在旧值上加一,希望在计算更新期间值不会变化。
应用推荐