Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


THREAD

THREAD indicates that a COBOL application is to be enabled for execution in a run unit that has multiple threads.

THREAD option syntax
Read syntax diagramSkip visual syntax diagram   .-NOTHREAD-.  
>>-+----------+------------------------------------------------><
   '-THREAD---'  
 

Default is: NOTHREAD

Abbreviations are: None

All programs within a run unit must be compiled with the same option: either THREAD or NOTHREAD.

When the THREAD option is in effect, the following items are not supported. If encountered, they are diagnosed as errors:

RERUN is flagged as an error with THREAD, but is accepted as a comment with NOTHREAD.

CICS TXSeries: The THREAD option is required.

Performance consideration: When using the THREAD option, you can expect some runtime performance degradation due to the overhead of serialization logic that is automatically generated.

related tasks
Compiling and running CICS programs
Compiling from the command line
Preparing COBOL programs for multithreading


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)