ILE COBOL Programmer's Guide

Working with Run-Unit Scoped Elements

Run-unit scoped elements have storage that can be shared across modules. Examples of shared storage are:

Within a run unit, every module has a lock, and ILE COBOL ensures that only one copy of a module is running at a time in the run unit. If you have resources with run-unit scope, it is your responsibility to synchronize access to that data from multiple threads using logic in the application. You can do one or both of the following:


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]