Should threads in Java be named for easier debugging?
问题 What are the best practices around thread naming in Java? Are there any naming conventions to follow? 回答1: I'd say that a general Best Practice is "choose good names", this applies to variables, methods, computers, possibly even children (just ask my son Gerund Extravagaza Smith). So yes, choose meaningful names for your threads if possible. Suppose we asked for a naming convention for files or computers. Would you expect there to be a generally applicable answer? I think that you need to