If A and B are marked serially reusable, A sometimes does a LINK to B and B 
sometimes does a LINK to A then a deadlock is likely.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Paul Gilmartin [0000042bfe9c879d-dmarc-requ...@listserv.ua.edu]
Sent: Wednesday, February 15, 2023 6:07 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Are JNI required to be re-entrant and/or re-usable?

On Wed, 15 Feb 2023 14:06:15 -0800, Michael Stein wrote:
>    ...
>This used to be documented, see page 26 of GC28-0683-3 OS/VS2 MVS
>Supervisor Services and Macro Instructions which says:
>
>   If the module is serially reusable, only one copy is ever placed
>   in the job pack area; this copy is always used for a LOAD macro
>   instruction. If the copy is in use, however, and the request is made
>   using a LINK, AITACH, or XCTL macro instruction, the task requiring the
>   load module is placed in a wait condition until the copy is available.
>
>https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.org%2Fdetails%2Fbitsavers_ibm370OSVS06833OSVS2MVSSupervisorServicesandMacros_11233168&data=05%7C01%7Csmetz3%40gmu.edu%7C00960357700844152f0d08db0fa96a54%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C638120992528260481%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=cz2ELF%2F6P9dDTalurAwGQSVSV%2Fq5ZNKuSlk7ugbuCCk%3D&reserved=0
>
Is there an hazard deadlock if two  serially reusable modules are concurrently 
active and each
LINKs to the other?  To avoid this, should one be made not reusable?

--
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to