Why Do Locks Require Instances In C#?

后端 未结 0 1912
广开言路
广开言路 2021-01-11 11:27

What is the purpose of using an object instance for each lock object? Is the CLR storing an instance of an object passed by a thread on a call to Monitor.Enter(instanc

相关标签:
回答
  • 消灭零回复
提交回复
热议问题