Solved

InterBase DeadLock

Posted on 2002-04-09
2
535 Views
Last Modified: 2010-04-04
I am a delphi Programmer and using IBX
every time i use interbase over multi user i get error message "deadlock"
what should i do in my program to avoid this problem ?
0
Comment
Question by:osasoft
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Expert Comment

by:God_Ares
ID: 6930580
it has somthing to do with transactions


t1    |t2
      | r(x)  
r(x)  |        
x=x+20|        
      | r(y)  
      | y=x+20
w(x)  |        
      | w(x)  
commit|
      |commit  

this are Bad transactions. t1 shoudn't read x until t2 has unlocked it.

you should learn more about this subject, search the internet, or take a course.

0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 50 total points
ID: 6930806
yep, its a transaction problem,
normally caused by two session like

session1 starts a transaction
session2 starts a transaction

session1 modifies table a
session2 modifies table b

session1 wants to modify table b
session2 wants to modify table a
-->deadlock, each session waits for the other

well, there is no common solution,
it depends on your code,
maybe you never end a transaction?

meikl ;-)


0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question