AS400 RPGLE Lock wait on multythreaded jobs

5 pts.
Tags:
AS/400 jobs
RPG ILE
I have 40 threads of the same program that I am submitting. The jobs go into and out off lckw status to fast to see the reason but this slows the process down How do I find the problem.
ASKED: May 3, 2010  11:31 AM
UPDATED: May 11, 2010  1:48 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Can you clarify your circumstances? Do you have an ILE RPG program that is attempting to handle 40 threads? Or do you have a job that spawns 40 threads and each thread calls your ILE RPG program? Is your program compiled with the THREAD(*SERIALIZE) control specification? I would normally assume that it was, but I have to ask. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Note that a serialized RPG program enforces serialization in multi-threaded jobs by way of a mutex. Locks will come and go as different threads might attempt to call the program. Only one thread will succeed at any given time. If the locks are not due to serialization, then others are possible. However, with no clarification of how your process runs, there is no way to answer. If you don't describe it, we can only assume that you aren't interested in an answer. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following