Reentrant programs are functions/modules that do not hold static data between calls.
For example, given an online system, program Client calls program Server. For Server to be reentrant (it normally should be), Server must be coded not to 'remember' any data between calls. All data to be processed must be kept and passed in the call by program Client.
A reentrant program is one that can execute in multiple copies (threads) simultaneously. Each copy, of course, servicing a different request.
a point to add up.
Reentrant program is a must to attain MultiThreading Environment. Under CICS command level COBOL application programs, quasi-reentrancy (reentrancy is called quasi-reentrancy under CICS) is automatically ensured
Each run of the reentrant program has a unique copy of working storage.
Each run of the reentrant program uses the same procedure division, the logic path followed only altering due to the particular working storage applied.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.