This sample program demonstrates a multithreaded Client-Library application. The program contains two files:
multthrd.c contains 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 sample uses for execution.
This sample cannot run if your platform does not support a complete POSIX thread implementation. You must set the SYBPLATFORM environment variable described in Appendix B, “Environment Variables.”