Timeout in DB2.

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
Amit Yadaw
New Member
Posts: 7
Joined: Wed Jun 11, 2014 8:33 am

Timeout in DB2.

Post 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!??
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Timeout in DB2.

Post 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.
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.
Amit Yadaw
New Member
Posts: 7
Joined: Wed Jun 11, 2014 8:33 am

Re: Timeout in DB2.

Post by Amit Yadaw »

Thank you Anuj! :)
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Timeout in DB2.

Post by Anuj Dhawan »

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.
Post Reply

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

Register

Sign in

Return to “IBM DB2 and IMS DB/DC”