Static Function Concurrency ASP.NET

后端 未结 7 1820
被撕碎了的回忆
被撕碎了的回忆 2021-02-09 18:59

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:41

    You put "ASP.NET" in the question title, this blog post is a good summary of the problems when using the ThreadStatic keyword in ASP.NET : http://piers7.blogspot.com/2005/11/threadstatic-callcontext-and_02.html

提交回复
热议问题