Expert Answer Center > Expert Knowledgebase > View Answer
EMAIL THIS
Expert Knowledgebase
  EXPERT KNOWLEDGEBASE HOME        RSS FEEDS  
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

HomeExperts on DemandIT Expert Webcast SeriesExpert KnowledgebaseSite Index
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  RSS  |  Site Map




All Rights Reserved, Copyright 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts