这有助于应用程序避免全局死锁。
因此运行并发线程时,出现了死锁。
同时,还可能出现死锁的情况。
收集整个数据库的死锁事件数据。
db2dlock:用于检测死锁。
该工具还执行死锁检测。
数据库识别出死锁事件。
要尽量避免的锁影响是挂起、超时和死锁。
The effects of locks that you always want to minimize are suspension, timeout, and deadlock.
按照死锁的定义,在这种情况下会发生死锁。
In this situation, the deadlock occurred according to the deadlock definition.
即使数据源支持xa事务,还会有死锁的可能。
Even if the datasource supports XA transactions, there is a possibility of deadlock.
死锁事件异常,用于帮助确定发生死锁的时间。
Deadlock event exception, which is used to help investigate when deadlocks have occurred.
这个图必须是无环的,以避免造成调度上的死锁。
The graph must be acyclic to avoid program scheduling deadlocks.
然而,第二个教训是,不可能看到代码里面的死锁。
However, the second lesson is that it is not necessarily possible to see the deadlock inside the code.
它减少了资源分配,还减少了出现死锁情况的机会。
It reduces resource allocation and reduces the chance of deadlock scenarios.
LOCK——保存的锁、死锁和锁等待升级的数目。
Lock - Number of locks held, deadlocks and lock waits escalations.
EDEADLK:如果继续请求,则会出现资源死锁。
EDEADLK — a resource deadlock would occur if the request continued.
不幸的是,这里仍旧存在另一个潜在的问题,叫做死锁。
Unfortunately, there's another potential problem looming, called a deadlock.
因为每个线程都在等候对方持有的锁,所以就发生了死锁。
Because each thread is waiting for a lock held by the other, a deadlock occurs.
当两个(或以上)线程相互等待别的线程时就会出现死锁。
A deadlock happens when two (or more) threads are each stuck waiting for another.
要想了解如何利用死锁来创建挂起的示例,请参见死锁示例。
For an example of how to create a hang using a deadlock, see this deadlock example.
在整个应用程序中,总是按相同次序访问资源可以最小化死锁。
Minimize deadlocks by always accessing resources in the same order, throughout the application.
这种特性特别适用于检测死锁、锁竞争、内存泄漏和循环线程。
It's particularly useful for detecting symptoms of deadlocks, lock contention, memory leaks, and cycling threads.
然而,即使是在最好的情况下,这个架构仍然会引起死锁问题。
However, even in a best-case scenario, this architecture can cause deadlock issues.
这些问题帮助我们处理如何确保避免竞争资源的进程之间的死锁。
These problems help us reason about how to ensure that we avoid deadlocks between processes competing for resources.
为了避免出现死锁,您必须连接所有必需的控制输入和数据输入。
To avoid a deadlock you must connect all required control inputs and data inputs.
这一模式还可以帮助您免除后端系统使用事务时引起的任何死锁。
This pattern also helps to avoid any deadlocks in case the backend system USES transactions.
为了改善应用程序的并发性,您需要找到引起死锁的sql语句。
In order to improve an application's concurrency, you need to figure out which SQL statements are causing the deadlocks.
建模不恰当的事件处理程序可能导致死锁和由于锁导致长时间等待。
Improperly modeled event handlers may lead to deadlock situations or long wait times caused by locks.
锁升级、锁超时和死锁将表明系统或应用程序中存在某些潜在问题。
The lock escalations, lock timeouts and deadlocks will indicate some potential problems in your system or application.
作为例子,我们假定当多个顾客同时登录并注册一个商店时发生死锁。
As an example, assume there are deadlocks when multiple shoppers log on and register a shop concurrently.
应用推荐