[Info-vax] Listeners in VMS Basic, was: Re: Integrity iLO Configuration?

Dave Froble davef at tsoft-inc.com
Fri Jun 25 22:02:29 EDT 2021


On 6/25/2021 9:24 PM, Stephen Hoffman wrote:
> On 2021-06-25 23:26:19 +0000, Arne Vajhj said:
>
>> Why not pthreads?
>
> pthreads is not my preferred threading model nor my preferred threading
> API. Not after using some of the other threading implementations around.
> Nor is the pthreads API friendly to BASIC code.
>
> Specifically for established and existing OpenVMS apps, KP Threads is a
> more familiar interface such as when working in BASIC.
>
> Using processes rather than threads avoids the "fun" of ensuring that
> all the app code and RTL code and all the shared variables are all
> thread re-entrant, too. This for OpenVMS. Threading support
> else-platform can be better.
>
> And if I wanted to overhaul or to re-write the existing BASIC app to use
> pthreads, or Java or Python or PHP, or other such efforts, I'd seriously
> consider re-hosting the entire app else-platform as that's headed for a
> re-write.
>
> Then there's this bit of "fun" to consider with pthreads:
> https://www.hpl.hp.com/techreports/2004/HPL-2004-209.html
>
>

I'll just address my opinion of threads.  Not saying they are useless, 
but, if the OS, VMS, already gives me separate "threads" called 
processes, why do I want the aggravation of re-inventing it inside my apps?

I'm sure someone will cry out "performance", but, with today's 
processors, performance is most likely a rare issue.

-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486



More information about the Info-vax mailing list