THREAD indicates that a COBOL program is to be enabled for execution in a run unit that has multiple threads.
THREAD option syntax .-NOTHREAD-. >>-+----------+------------------------------------------------>< '-THREAD---'
Default is: NOTHREAD
Abbreviations are: None
All programs within a run unit must be compiled using the same option: either THREAD or NOTHREAD.
If the THREAD option is in effect, the following elements are not supported. If encountered, they are diagnosed as errors:
Usage notes
cob2_j and cob2_r cause THREAD to automatically be included as a default invocation option.
Performance consideration: If you use the THREAD option, you can expect some runtime performance degradation due to the overhead of serialization logic that is automatically generated.