Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Proper serialization of shared memory objects z/OS MVS Programming: Extended Addressability Guide SA23-1394-00 |
|
It is important to serialize access to shared memory objects so that the shared memory objects your program creates and uses do not cause situations where z/OS® finds reason to abnormally end the work unit. Shared memory objects can be serialized with ENQs, Latches, or other cross-address space serialization techniques. The following example shows the behavior of memory objects when strict serialization is not maintained. Example: Tasks A, B, and C are sharing storage
through a GETSHARED request obtained by task A. Task B and C are continually
sharing the storage via SHAREMEMOBJ and DETACH AFFINITY=LOCAL. They
continue sharing until task A chooses to DETACH AFFINITY=SYSTEM to
the shared storage while both of the following conditions apply:
|
Copyright IBM Corporation 1990, 2014
|