Naming conventions for threads?

前端 未结 7 1931
南笙
南笙 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

    What about:

    [namespace].[Class][.Class...].[Method][current thread]?

    So you have the names:

    Biz.Caching.ExpireDeadItems1
    Biz.Caching.ExpireDeadItems2
    Biz.Caching.ExpireDeadItems3

    etc., for each thread.

提交回复
热议问题