Use the THREADLIB environment variable to compile multithreaded ESQL/C applications. A multithreaded 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.
>>-setenv--THREADLIB--DCE--------------------------------------><
The THREADLIB environment variable is checked when the -thread option is passed to the ESQL/C script when you compile a multithreaded ESQL/C application. When you use the -thread option while compiling, the ESQL/C script generates an error if THREADLIB is not set, or if THREADLIB is set to an unsupported thread package.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]