添加清单10中的代码将数据读回并更改呈现的信息。
Add the code shown below in Listing 10 to read the data back in and change the presented information.
最常见的错误是做出这样的假设:因为程序将该数据写出,该程序就能不用验证再一次将该数据读回去。
The most common mistake is to assume that because an instance of your program wrote the data out, it can read that data back in again without verifying it.
如果你的数据读很多或者很少有并发缓存访问和更新,那么可以使用“nonstrict - read - write”策略。
Use the "nonstrict-read-write" strategy if your data is read-mostly or concurrent cache access and update is rare.
Notice the difference. The recipe, the sequence of instructions, is actually getting read in, and it's treated just like data.
注意其中的差别,方法,也就是指令序列,其实是需要读的,被当做数据来对待。
应用推荐