Choosing THREAD to support multithreading
THREAD compiler option for multithreading
THREAD if your program will be called
in more than one thread in a single process by an application. However,
adversely affect performance because of the serialization logic that
is automatically generated.
In order to run COBOL programs in more than one thread, you must
compile all of the COBOL programs in the application using the
option. You must also compile them with the
option and link them with the
RENT option of the binder (linkage-editor).
when you compile object-oriented (OO) clients and classes.
restrictions: When you use the
you cannot use certain language elements. For details, see the related
Recursion: Before you compile a program using the
option, you must specify the
RECURSIVE phrase in
PROGRAM-ID paragraph. If you do not do so, an
error will occur.
Sharing data in recursive or multithreaded programs
Compiling OO applications under z/OS UNIX