Page 1 of 1

Timeout in DB2.

Posted: Wed Nov 19, 2014 12:15 pm
by Amit Yadaw
Hi,

What exactly is a timeout in DB2? Is not it just a deadlock with other name? Or at least it's very closely associated with it!??

Re: Timeout in DB2.

Posted: Wed Nov 19, 2014 12:33 pm
by Anuj Dhawan
Ah lock timeouts in DB2 are perhaps like the pain in *** for a DB2 programmer. You might have read about this already, as it sounds with the tone of your post, so I'll try slowly to talk about this.

When an application (read it as COBOL DB2 Application, let's call it CDA1) requests a lock that’s already held by another process, and the lock can’t be shared, that application,CDA1, is suspended. A suspended process temporarily stops running until the lock can be acquired on the resourece, it needs. When an application has been suspended for a pre-determined period of time (defined at system level), it will be terminated. When a process is terminated because it exceeds this period of time, it’s said to timeout. In other words, a timeout is caused by the unavailability of a given resource. So, as you see, it's not really a dead-lock.

Re: Timeout in DB2.

Posted: Tue Dec 09, 2014 6:11 pm
by Amit Yadaw
Thank you Anuj! :)

Re: Timeout in DB2.

Posted: Wed Dec 10, 2014 7:10 pm
by Anuj Dhawan
You're welcome! :)