Application Building Guide
DB2 supports C and C++ multi-threaded applications. These
applications allow the user to have several simultaneous processes
operating, to handle asynchronous events, and to create event-driven
applications without resorting to polling schemes. The following
sample program is used to demonstrate building a DB2 multi-threaded
application on all supported UNIX platforms except HP-UX 10 and
Linux:
- thdsrver
- demonstrates thread creation and management; only available in the C and
C++ languages.
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 | Table of Contents | Index ]
[ DB2 List of Books |
Search the DB2 Books ]