I have seven different transactions, a job accessing a table and a job
inserting records to the same table. Will there be any possibility for
deadlock? If so how to overcome this issue?
QUESTION POSED ON: 12 JUL 2004 QUESTION ANSWERED BY:
Craig Mullins
A deadlock occurs when Process1 has a lock on ResourceA and wants to access
ResourceB - and at the same time Process2 has a lock on ResourceB and wants
to access ResourceA. Without looking at the exact code and nature of your
application I cannot say for certain if your scenario could cause a
deadlock, but my guess is that it might.
To minimize deadlocks code your applications such that they access data in
the same order - and hence would not encounter deadlocks (but might
encounter lock timeouts instead). For More Information
Related Topics:
Search Advice from more than 250 TechTarget Experts
Your question may have already been answered! Browse or search more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice
ASSOCIATED RSS FEEDS

 |
 |
Expert Answer Center: Expert Q&As |
 |
View all RSS Feeds | RSS Info
|
 |
|