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.
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
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
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 2  Replies