× 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.



>Not having C as an option here, 

If you are on V5R1 or above and have software subscription I believe you
have already paid for the C compiler (Cobol, too!).  It is bundled with all
the compilers, PDM and WDSc.  You need to ask your BP to get it shipped to
you.

>I'm curious if there are ways to implement threads using RPG.

When I went to COMMON several years ago I was in a session where threads
were discussed as a lightweight way to handle variable workloads.  I have
never seen a multi-threaded RPG server.  In most cases, we simulate that
with NEPs feeding off of data queues.  When the delay time gets too long,
submit another NEP to read from the same DTAQ.  When the delay gets too
short, kill the extra job.

It would be interesting to see that done with threads in RPG, but I'm not
too sure of the benefit.  (As in the cost of spawning a thread vs SBMJOB for
the number of tasks we normally need to 'serve'.)
  --buck

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