|
IMHO, it's significantly easier to code thread safe RPG programs vs. C
programs. RPG has built-in support for ensuring static variables are
separated for each thread, for serializing multi-threaded access, etc.
In C, you have to code those things yourself using mutexes, semaphores,
et al.
So, I agree with Chris.. you're definitely not "crazy to do it".
Though, in general, I would avoid multi-threaded programming in any
language unless there's a really good reason to use it. But, writing a
TCP network server is one environment where it often makes sense.
-SK
On 10/27/2021 12:19 PM, Hiebert, Chris wrote:
multi-threaded c programs.But you did. You said "because RPG programs are not thread-safe"I am not saying they cannot.
Don't report that the language is not thread-safe, when it is.
C programs are not always thread-safe either. But people still code
learn or train or get adopted.
I am just saying you are crazy to do it.
Exactly. So you choose not to use it. Because it's too hard for you to
Whatever the reason is that's fine, it's still your choice.--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
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.