This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]