This sample program contains two files, multthrd.c and thrdfunc.c, which demonstrate a multithreaded Client-Library application. The following information is contained in the two files:
multthrd.c contains the source code that spawns five threads. Each thread processes a cursor or a regular query. The main thread waits for the other threads to complete query processing and then terminates.
thrdfunc.c contains platform specific information that determines which thread and synchronization routines the example uses for execution depending on your platform.
For more information about this program, see the leading comments in the example source file.
This sample cannot run if the platform does not support a complete POSIX thread implementation. You must set the SYBPLATFORM environment variable described in Appendix B, “Environment Variables.”