One time I had a problem with Windows threads and the client called Microsoft support for help. The support person recommended a free software from www.sysinternals.com. I was able to monitor what files were accessed, see the PID in the threads, and gather tons of good debugging info.
Note, I don’t work for Microsoft, Sysinternals, or webMethods.
For Unix threads, you might want to use GDB.
#B2B-Integration#Integration-Server-and-ESB#webMethods