Using functions such as prctl or pthread_set_name_np, you can change the name of the thread. The limitation that both functions impose, at least in Linux 2.6.38, is that the name cannot be longer than 15 characters (the NULL ending is the 16th byte).
Where is this 15-digit limit, and is there any (even unorthodox) way around it?
Update
As mentioned in the comments, this is overlaid by the kernel.
The definition can be found here: http://lxr.linux.no/linux+v2.6.37/include/linux/sched.h#L245
c linux unix pthreads introspection
dsvensson Feb 17 2018-11-11T00: 00Z
source share