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!??
Timeout in DB2.
- Anuj Dhawan
- Founder
- Posts: 2824
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Timeout in DB2.
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.
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.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
-
- New Member
- Posts: 7
- Joined: Wed Jun 11, 2014 8:33 am
- Anuj Dhawan
- Founder
- Posts: 2824
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Timeout in DB2.
You're welcome! 

Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute