× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 2020-03-06 12:34 p.m., Justin Taylor wrote:
I have an old reference (2002) that says you must specify THREAD(*SERIALIZE) when calling an RPGLE service program from Java. Is that still required/recommended?

The RPG Ref manual explains that THREAD(*SERIALIZE) prevents multiple threads from concurrently access the same code, in essence making it singe-threaded. This would be undesirable for my current project.



If your RPG code might be called by multiple threads, you must code the THREAD keyword. But you can code THREAD(*CONCURRENT) if you want your code to run concurrently in multiple threads.

If your code actually runs in multiple threads without the THREAD keyword, bizarre and unreproducible bad-things are almost guaranteed to happen.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.