Top "Deadlock" questions

Situation where two (or more) operations need overlapping sets of resources, and neither can complete because they cannot obtain all locks necessary to complete an operation and release their locks.

How is Hibernate deciding order of update/insert/delete

Let's first forget about Hibernate. Assume that I have two tables, A & B. Two transactions are updating same records …

hibernate deadlock database-deadlocks
"Calling this from your main thread can lead to deadlock and/or ANRs while getting accesToken" from GoogleAuthUtil(Google Plus integration in Android)

In my android application, I am trying to get AccessToken from GoogleAuthUtil as below : accessToken = GoogleAuthUtil.getToken(this, mPlusClient.getAccountName(), "…

android google-plus deadlock access-token
Thread deadlock example in C#

Can someone give an example of how thread deadlock can be caused in the C# language?

c# deadlock
all goroutines are asleep - deadlock

For one of my requirement I have to create N number of worker go routines, which will be monitored by …

go deadlock channel
Would you explain lock ordering?

I learned that I should unlock reverse order to lock order. For example. A.lock(); B.lock(); B.unlock(); A.…

concurrency locking deadlock
How do I find the handle owner from a hang dump using windbg?

How do I find out which thread is the owner of my Event handle in windbg: I'm running !handle 00003aec …

windbg deadlock handle
Locking strategies and techniques for preventing deadlocks in code

The common solution to preventing deadlock in code is to make sure the sequence of locking occur in a common …

c++ design-patterns locking deadlock
CPU Utilization high for sleeping processes

I have a process that appears to be deadlocked: # strace -p 5075 Process 5075 attached - interrupt to quit futex(0x419cf9…

linux process cpu deadlock sleep
How to detect deadlock ? Timeout in synchronized block?

I’m debugging a Java application that runs several threads. After a while of watching the log it seems that …

java multithreading deadlock
Database deadlocks

One of the classical reasons we have a database deadlock is when two transactions are inserting and updating tables in …

database database-design deadlock