The function is not atomic: concurrent access from another thread, even through an atomic operation, is a data race.
不是原子的功能是:从另一个线程的并发访问,甚至可以通过一个原子操作,是数据争用。
Now, we would have created a data race on the local variable sum, because multiple threads might want to update it simultaneously.
现在,我们在局部变量sum上创造了一场数据竞争,因为多个线程可能同时希望更新它。
The release and acquire have to "match" (i. e. , be performed on the same monitor) to have the right semantics. Otherwise, the code has a data race.
释放监视器和获取监视器必须匹配(也就是说要在相同的监视器上面完成这两个操作),否则,代码就会存在“数据竞争”。
Data RACES on local variables would be a new category of hazards, because we currently can always count on local-variable accesses being data-race-free.
局部变量上的数据竞争将是一种新的危险,因为我们目前始终期望局部变量访问没有数据竞争。
This addresses the data race, but has further costs for concurrency, since locking the entire list while iterating could block other threads from accessing the list for a long time.
这样做虽然解决了数据争用问题,但是在并发性方面付出了更多的代价,因为在迭代期间锁住整个list会阻塞其他线程,使它们在很长一段时间内不能访问这个列表。
The consequences of failing to properly synchronize are severe: data corruption and race conditions, which can cause programs to crash, produce incorrect results, or behave unpredictably.
如果同步不适当,后果是很严重的:会造成数据混乱和争用情况,导致程序崩溃,产生不正确的结果,或者是不可预计的运行。
Originally we thought that race conditions would be the most important problem, because they can cause data corruption and they are especially hard to work backwards to find a root cause.
以前我们认为竞态条件是最重要的问题,因为它们会破坏数据,而且很难找到问题的根源。
Because the agent serializes access to the data, there is no risk of a race condition or data corruption.
由于agent序列化了数据访问,因此不会有竞争条件或数据损坏风险。
When the experimenters used imaging software to adjust the pictures of the mixed-race individuals subtly, the data became even more precise.
试验者使用图像处理软件对混合种族个体的图片作出巧妙调整之后,数据甚至变得更为精确了。
Using census data from 1970 to 2000, they analyzed the choices people made in so-called marriage markets, based on age, education, race and where they lived.
学者通过使用1970年到2000年的人口普查数据来分析人们在所谓的婚姻市场中做出的选择,而年龄、教育、种族以及生活地区等是构成这一市场的基础。
The cancer Society did not release cancer death data broken down by state, race or ethnicity. Those statistics are to be completed later this year.
癌症学会没有发表有关州,种族造成的癌症死亡数据。这些统计今年晚些时间会被完成。
GEB reader Thomas has spent some time building an impressive collection of KML data for the race.
钩吻读者托马斯花了一些时间建立一个为比赛的KML数据令人印象十分深刻。
The data included responses from 5,000 Americans who were asked about restaurant dining habits, income, race, gender, age and education.
这些数据包括5000个被调查的美国人的回应,调查项目包括就餐习惯,收入,种族,年龄和受教育程度。
The existing data about skin optical properties were obtained from in vitro skin samples or by mathematic simulating. Most of those are mainly about white or black race and seldom about yellow race.
已有的皮肤光学特性的资料均来源于离体皮肤标本或是经过数学模拟而得,而且这些资料主要来自对白色人种或黑色人种研究的结果,对黄色人种活体皮肤组织的光吸收特性的研究数据甚少。
If multiple threads attempt to access a Shared resource at the same time, race conditions can result, causing corruption of data.
如果多个执行绪同时尝试存取共用资源,就可能造成竞争情形而使得资料损毁。
Contemporarily, it can reduce the over-reliance on personal experience, and ensure the race ability of product design process and design data.
同时,降低对个人经验的过分依赖,保证产品设计过程和设计数据的可追溯性。
Contemporarily, it can reduce the over-reliance on personal experience, and ensure the race ability of product design process and design data.
同时,降低对个人经验的过分依赖,保证产品设计过程和设计数据的可追溯性。
应用推荐