要修复这个最后的漏洞,我们需要一种原子性地更新分数引用的方法,同时又要保证不受干扰。
To close this last hole, we need a means of atomically updating the score reference while guaranteeing freedom from interference.
如果出现计时失误,这两个分数都能够通过“高于现有分数的最高分”检查,并且都进入到更新最高分的代码块中。
With some unlucky timing, both will pass the test of "is new score higher than existing high score," and both will enter the block that updates the high score.
麦肯锡后来更新了部分数据,它发现,虽然在大部分国家债务占gdp的比例没有继续上升,但只在一个主要经济体出现了明显的下降,这个国家就是美国。
McKinsey has updated some of those Numbers and has found that although debt for the most part has stopped rising as a share of GDP, in only one big economy, America, has it visibly fallen.
应用推荐