THREADLIB environment variable (UNIX)
Use the THREADLIB environment variable to compile multithreaded IBM® 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 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.