hmmm ....
You could use the thread name to hold the id of the current client as long as you set it for each method invocation ... is that not what you did to make the id of the client available to the lock/unlock method .... or did you use a static variable in some class .... still the question asked how to id the currently executing thread ...
To quote the original post ....
I am testing to see how many different threads get spawned when clients make requests. How do a get the thread id of the current thread?
Conor

[This message has been edited by Conor Allen (edited June 07, 2001).]
[This message has been edited by Conor Allen (edited June 07, 2001).]