Hello,  currently  pthread_setname_np   is used on e.g.  Linux and BSD

 

https://hg.openjdk.java.net/jdk/jdk/file/ccb7bf459cbd/src/hotspot/os/linux/os_linux.cpp#l5101

 

https://hg.openjdk.java.net/jdk/jdk/file/ccb7bf459cbd/src/hotspot/os/bsd/os_bsd.cpp#l3280

 

 

for setting  unique names for a threads.

See the Linux manpage :

 

https://linux.die.net/man/3/pthread_setname_np

 

 

I noticed  that   the function seems to  be available  now  on IBM i     

 

https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/apis/pthread_setname_np.htm

 

but I did not find it on AIX  -  are there plans to include it on AIX ? Or is it already available in some SP ?

If not is there a replacmenet function for it  we could use ?

 

 

Thanks, Matthias