The question is ambiguous, so I'll answer it each way.
1. If you share a subpool with a subtask and that subtask
does an ATTACH without sharing that subpool, then the
subsubtask does not inherit the shared subpool.
2. If you share a subpool with a subtask, neither the
parent task nor the subtask can alter the shared status
of the subpool.
--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of
Thomas David Rivers <[email protected]>
Sent: Thursday, March 29, 2018 8:15 AM
To: [email protected]
Subject: Subpool sharing and subpool freeing at main task termination
The documentation for "Subpool handling" from the Assembler Services Guide
indicates that (for subpools 0-127, which are task-related) "when the task
terminates, the system automatically releases any of the subpool from
0 through 127 that are unshared and are associated with the task."
It then goes on to note that the SHSPV and SHSPL option on the
ATTACH/ATTACHX
macro can be used to indicate that a subpool is to be shared (other than
subpool 0
which is, by default, shared.)
My question is the attribute of "shared" - once a subpool is marked shared,
can it ever be marked non-shared again? Once all sub-tasks end, does it
revert back to non-shared, and thus when the main task ends, would the
subpool
be released by the OS?
I can't seem to find any commentary on that question...
That is - if a multi-task address space shares a subpool; is it the
responsibilty
of the main task to release the shared subpool, or will the OS do this when
the main task ends?
- Thanks -
- Dave Rivers -
--
[email protected] Work: (919) 676-0847
Get your mainframe programming tools at
http://secure-web.cisco.com/19Wqz21PP-OaYYn7pkfGuIcfFC0cXR_iiYeXIR1gIF5yvy_P1s_lLWXBAJYgG4tmODO3E2sA9amrVJ2Cbut56pOmvj3uUvOhi_S150PkpUmrqtjzhYdWiSyntMgD-6eMa2VjZWnCvIbHj16SjHU9wPINuMrpFy1vM5xlb2FbMRrsxyKzdVmBZx34zt-c2WBeUBp310lw6UbXvuoO3hQ65fTEO3xo2vqgp1QpKk7VJCjp380RkTGqYDvvhqnzupzwdaMmx5ZFKoqomzBZk4SObccL4_HCCa2dtoCJxxOCeqVytPG3ptAnDx05yNhfqF43JflzZNyBsh3Leh9H_DAi6n8dgsltiLmoXRlrQztKkme-DAqcLF3CHYTgS8JZsV6FbArRDWZtEjQoqTJi55TF2VXStIiHSURRZXAbSJ-QEyTnUdGz8SUCfobsTdc750P8y/http%3A%2F%2Fwww.dignus.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN