> On Mon, 14 Jan 2002, Andy Nolen-Parkhouse wrote:
> > A standard, single-threaded program will not take advantage of more
> > one processor.  This would include the standard RPG/COBOL
> > and batch programs found in most older systems.  Multi-threaded
> > applications should be able to take advantage of multiple
> > although I'm a little over my head here as to specifics.  I don't
> > whether the HTTP server supports multiple threads.
> I'm unsure of the capabilities of *new* RPG programs to take advantage
> multi-threading.  Multi-threaded apps have ops such as
> thread_lock(), thread_destroy(), etc. (or some variation).  RPG
> have these ops as far as I know.  Perhaps the compiler can do some
> magic to enable threading but it seems unlikely.

You're correct.  If anyone took my statements above to imply that you
could create a multithreaded app solely using modern RPG, that was never
my intent.

>From the Infocenter:

The iSeries system now supports multithreading. ILE RPG does not
directly support initiating or managing program threads. However, ILE
RPG procedures can run as threads in multithreaded environments. If you
want to call an ILE RPG procedure in a multithreaded application, you
must ensure that the ILE RPG procedure is threadsafe. You must also
ensure that any system functions that your procedure accesses are also

Andy Nolen-Parkhouse

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 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.