Given that the current double-checked locking code does not work, I've put together another version of the code, shown in Listing 7, to try to prevent the out-of-order write problem you just saw.
考虑到当前的双重检查锁定不起作用,我加入了另一个版本的代码,如清单7所示,从而防止您刚才看到的无序写入问题。
There was another nasty twist: Many accumulators required investors to double down on purchases if shares dropped, buying 2,000 shares instead of 1,000 at a price that now put them in the red.
还有另一个讨厌之处:很多累股合约都要求投资者在股价下跌时双倍买进,也就是说,如果股价下跌,投资者要买进2,000股而不是1,000股,尽管合同规定的价位已使所进行股票投资亏本。
Put another way, Rodell says, the amount of underground water depletion is about double the capacity of India's largest reservoir.
换言之,罗德尔说,地下水的消耗总量,相当于印度最大水库库容量的两倍。
Put another way, Rodell says, the amount of underground water depletion is about double the capacity of India's largest reservoir.
换言之,罗德尔说,地下水的消耗总量,相当于印度最大水库库容量的两倍。
应用推荐