Preparing COBOL programs for multithreading

Although you cannot initiate or manage program threads in a COBOL program, you can prepare a COBOL program to run in a multithreaded environment. You can run COBOL programs in multiple threads within a process.

There is no explicit COBOL language to use for multithreaded execution; rather, you compile with the THREAD compiler option.

After you compile COBOL programs using the THREAD compiler option, other applications can call these COBOL programs in such a way that the programs run in multiple threads within a process or as multiple program invocation instances within a thread.

Example: using COBOL in a multithreaded environment

related concepts  
Multithreading

related references  
THREAD  
PROGRAM-ID paragraph (COBOL for AIX Language Reference)