[Info-vax] yet another sys$qiow question
JF Mezei
jfmezei.spamnot at vaxination.ca
Fri Aug 21 11:56:16 EDT 2015
On 15-08-21 11:18, "VAXman- "@SendSpamHere.ORG wrote:
> It would serve no purpose. There are *proper* ways to handle the IOSB!
> $SYNCH, which would wait the thread of execution until the I/O has been
> completed and then,
I hate code that can leave a process in LEF forever. That is why I so
much prefer AST driven code.
> Polling the IOSB would be a stupid waste of CPU time.
Reminiscent of DOS type of programs by windows weenies who just looped
constantly to see if there was a character to be fetched from keyboard
buffer.
However, I could see some uses for it in GUI where you have a "get
event" loop and after each event, you check the IO completion. (not
quite kosher since the IO could complete while user is at the water
cooler and the lack of interactive events would leave the buffer
unprocessed until user returned and did something).
And if you are busy calculating PI, the IO is best handled with an AST
that interrupts the mainline PI calculation to post process the IO and
return to calculating PI once done.
ASTs are one of VMS's best programming attributes in my opinion.
More information about the Info-vax
mailing list