in reply to Re: Re: fork() emulation hack for OpenVMS
in thread fork() emulation hack for OpenVMS

Generally you don't do that. The paradigm is different.

Since all of VMS' I/O is potentially asynchronous (and the cluster locking mechanism is considered I/O, of a sort) and you can attach a custom callback and one piece of custom data to each I/O request, as well as wait for one of a set of general "event done" bits to be set. What's generally done is either:

The whole "waiting for input & output & stalling" case generally doesn't arise since there's no sync I/O going on. Unfortunately it is a bit more complex than plain sync I/O.
  • Comment on Re: Re: Re: fork() emulation hack for OpenVMS