Thread names in Linux - possible to reflect the GCJ name?
Martin Egholm Nielsen
martin@egholm-nielsen.dk
Wed Jul 6 07:39:00 GMT 2005
Hi there,
Every time you create a new thread in gcj under Linux, you get a new
thread under Linux. However, all of these created threads have the name
of the executable.
Is it possible to hack something so that the thread name seen from Linux
is augmented with the thread-name from GCJ - e.g. as:
# ps -ef
PID Uid Stat Command
53 root S ./myapp (GC)
62 root S ./myapp (Main)
63 root S ./myapp (One thread)
64 root S ./myapp (Another thread)
66 root S ./myapp (etc.)
BR,
Martin Egholm
More information about the Java
mailing list