GIJ Thread PIDs for JVMTI/JDWP

Tom Tromey tromey@redhat.com
Thu Aug 31 22:23:00 GMT 2006


>>>>> "Kyle" == Kyle Galloway <kgallowa@redhat.com> writes:

Kyle> Does anyone know if there is already a way to get the Linux PID of a
Kyle> Java thread running on GIJ?

There isn't one.

Kyle> If this functionality doesn't exist, does
Kyle> anyone know of a better solution than just having the threads store
Kyle> their PID in a data structure (likely in natThread.cc) on
Kyle> startup?

Sounds reasonable to me.
I looked a bit and all I can see is gettid() -- meaning this is the
only approach.

Tom



More information about the Java mailing list