I recommend that you use the PAUSE/RELEASE pair instead of WAIT/POST.

The WAIT/POST pair is, like GETMAIN/FREEMAIN, lumbered with the
detritus of the ages, much of it ugly.

Let me also add that another important, in some contexts crucial,  use
of subtasks stems from the fact that failures within them are less
catastrophic.  Suppose that task A attaches subtask B and that subtask
B in turn attaches its own subtask C.  Now if C fails/ABENDs, A and B
survive; and if B fails A survives [B and its subtask(s), C here, are
terminated].

The idea of relegating perilous undertakings, those that may fail, to
subtasks that do not bring down the whole shebang when they do in fact
fail is thus a very useful one.  (This same recoverability argument
can sometimes make the use of multiple address spaces highly
desirable, but I am not sure you are quite ready for that.)


John Gilmore, Ashland, MA 01721 - USA

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to