THREADLIB environment variable (UNIX)

Use the THREADLIB environment variable to compile multithreaded Informix® ESQL/C applications. A multithreaded Informix ESQL/C 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 Informix ESQL/C script when you compile a multithreaded Informix ESQL/C application. When you use the -thread option while compiling, the Informix ESQL/C script generates an error if THREADLIB is not set, or if THREADLIB is set to an unsupported thread package.