This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Thread names in Linux - possible to reflect the GCJ name?
- From: Martin Egholm Nielsen <martin at egholm-nielsen dot dk>
- To: java at gcc dot gnu dot org
- Date: Wed, 06 Jul 2005 09:38:38 +0200
- Subject: Thread names in Linux - possible to reflect the GCJ name?
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