How do I know if this C# method is thread safe?

后端 未结 11 1532
不知归路
不知归路 2020-12-07 13:19

I\'m working on creating a call back function for an ASP.NET cache item removal event.

The documentation says I should call a method on an object or calls I know wil

11条回答
  •  情话喂你
    2020-12-07 14:00

    There is some research going on which allows you to detect non-thread-safe code. E.g. the project CHESS at Microsoft Research.

提交回复
热议问题