126 reputation
3
bio website 256.com/gray
location United States
age 49
visits member for 3 years, 8 months
seen Jun 2 at 19:50

Java hacker. In a previous life a C hacker. Ton of distributed architecture experience, lot of networking/multithreading, some ORM knowledge. ORMLite primary author.


May
2
awarded  Teacher
May
1
comment Resource/Thread Allocation and Deadlock
Cool. I've added an answer as a summary.
May
1
answered Resource/Thread Allocation and Deadlock
May
1
comment Resource/Thread Allocation and Deadlock
Yes, you are correct. This is not deadlock because T1 can still operate. When it is done it will unlock R3 and T2 will get it. It will unlock R1 and T3 will get it.
May
1
comment Resource/Thread Allocation and Deadlock
Yes, that's exactly right. Deadlocks are all about multiple locks and lock order.
May
1
comment Resource/Thread Allocation and Deadlock
Btw, I assume that the Rs and Ts aren't somehow connected, right? It could be R4, R5, R6 instead of the same numbers as T1-3, right?
May
1
comment Resource/Thread Allocation and Deadlock
I'm not sure what you mean by cycle but you are correct about waiting for resources versus a deadlock. So what would an example me of a deadlock using the resources?
May
1
comment Resource/Thread Allocation and Deadlock
Neither of those is a deadlock. That is just lock contention.
May
1
comment Resource/Thread Allocation and Deadlock
Why do you think there is no deadlock? Can you expand on that? What would an example of deadlock be?
Mar
10
awarded  Editor
Mar
10
awarded  Autobiographer