| 1. | Unresolved contention for the use of a resource 为使用同一资源而产生的无法解决的争用状态。 |
| 2. | Preventing race conditions by using locks 使用锁来防止争用状态 |
| 3. | In order to avoid a race condition with 来避免争用状态。 |
| 4. | You can protect critical sections of your code from race conditions by employing locks 您可以通过使用“锁”来保护代码的关键部分免受争用状态的损坏。 |
| 5. | This situation is called a race condition and is a common concern in multithreaded programming 这种情况被称作争用状态,它是多线程编程中的常见问题。 |
| 6. | When more than one thread simultaneously competes for access to shared resources , the possibility of a race condition occurs 当多个线程同时竞争共享资源的访问权时,就可能会出现“争用状态” 。 |
| 7. | Multithreading solves problems with throughput and responsiveness , but it can also introduce resource - sharing issues such as deadlocks and race conditions 多线程处理解决了吞吐量和响应性的问题,但同时也带来了资源共享问题,如死锁和争用状态。 |
| 8. | Note that you must address potential race conditions if you use this pattern in a multithreaded application where the test involves a mutable object 注意,当在测试涉及可变对象的多线程应用程序中使用该模式时,必须解决可能出现的争用状态问题。 |
| 9. | Except for system failures and operations with potential race conditions , framework designers should design apis so that users can write code that does not throw exceptions 除了系统故障及可能导致争用状态的操作之外,框架设计人员还应设计一些api以便用户可以编写不引发异常的代码。 |
| 10. | A race condition exists when a thread modifies a resource to an invalid state , and then another thread attempts to access that resource and use it in the invalid state 如果一个线程将资源修改为无效状态,然后另一个线程又试图访问该资源并在无效状态中使用该资源,此时便存在争用状态。 |