THREADLIB environment variable (UNIX)

Use the THREADLIB environment variable to compile multithreaded applications. A multithreaded application lets you establish as many connections to one or more databases as there are threads. These connections can remain active while the application program executes.

The THREADLIB environment variable indicates which thread package to use when you compile an application. Currently only the Distributed Computing Environment (DCE) is supported.

1  setenv THREADLIB DCE

The THREADLIB environment variable is checked when the -thread option is passed to the script when you compile a multithreaded application. When you use the -thread option while compiling, the script generates an error if THREADLIB is not set, or if THREADLIB is set to an unsupported thread package.