DB2 supports C and C++ multi-threaded applications on supported UNIX platforms. These applications allow the user to have several simultaneous processes operating several simultaneous threads of execution. This allows the handling of asynchronous events, and the creating of event-driven applications without resorting to polling schemes. The following sample program is used to demonstrate building a DB2 multi-threaded application:
Links to the program source code:
The following sections discuss building DB2 multi-threaded applications for C and C++ compilers on UNIX platforms: