Application Building Guide


Multi-threaded Applications

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:

thdsrver
demonstrates thread creation and management.

Links to the program source code:

C
thdsrver.sqc

C++
thdsrver.sqC

The following sections discuss building DB2 multi-threaded applications for C and C++ compilers on UNIX platforms:

AIX IBM C
"Multi-threaded Applications".

AIX IBM C Set++
"Multi-threaded Applications".

HP-UX C
"Multi-threaded Applications".

HP-UX C++
"Multi-threaded Applications".

Silicon Graphics IRIX MIPSpro C
"Multi-threaded Applications".

Silicon Graphics IRIX MIPSpro C++
"Multi-threaded Applications".

Solaris SPARCompiler C
"Multi-threaded Applications".

Solaris SPARCompiler C++
"Multi-threaded Applications".


[ Top of Page | Previous Page | Next Page ]