Static Function Concurrency ASP.NET

后端 未结 7 1381
遇见更好的自我
遇见更好的自我 2021-02-09 19:14

If you have two threads invoking a static function at the same moment in time, is there a concurrency risk? And if that function uses a static member of the class, is there even

相关标签:
7条回答
  • 2021-02-09 19:59

    Static methods in OO are no difference from "just" functions in procedural programming. Unless you store some state inside static variable there is no risk at all.

    0 讨论(0)
提交回复
热议问题