Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

POSIX threads can be individually named. They inherit the name of their creator if you don't set one.


They can be named in Windows as well, and this author has made pleas for developers to do so.


The caveat being the developers who are careful enough to name their threads and implement good debug hooks aren't the ones you get called on to fix their code.


As an aside, POSIX/Linux thread names have a limit of 16 bytes, which means 15 characters plus NULL. Speaking from experience, this can and will bite you when you need the names the most, if e.g. they are long, have just one or a handful of common prefixes and their creation is not entirely under your control.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: