Naming conventions for threads?

前端 未结 7 1942
南笙
南笙 2020-12-24 06:16

It\'s helpful to name threads so one can sort out which threads are doing what for diagnostic and debugging purposes.

Is there a particular naming convention for thr

7条回答
  •  暖寄归人
    2020-12-24 06:51

    I've seen several naming conventions for threads in .NET.

    Some prefer using 't' in the beginning of the name (ex. tMain Thread) but I don't think it has any real value. Instead why not just use plain descriptive names (line variables) such as HouseKeeping, Scheduler and so on.

提交回复
热议问题