IBM Books

Call Level Interface Guide and Reference


Tracing Muli-Threaded or Muli-Process Applications

For the trace to be of any use for multi-threaded or multi-process applications, you will need to use the TRACEPATHNAME keyword. (Otherwise the trace will be garbled if multiple threads or processes are writing to it simultaneously). See TRACEPATHNAME for more information.

The files are created in the path specified with the name set to the process id of the application and an extension that is a sequence number for each unique thread (eg. 65397.0, 65397.1, 65397.2 etc.).

By having each thread write to its own file, no semaphores are needed to control access to the tracefile, which means tracing dosn't change the behavior of a multi-thread application. (Of course, tracing may effect the timing of a multi-threaded application).


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]