阅读背景:

有人可以给我一个如何在C#中使用System.Monitor的简单示例吗?

来源:互联网 

I find System.Monitor very confusing, although I understand threading, locks, deadlocks, race conditions, dining philosophers and all that jazz. Normally I use a ManualResetEvent() to do inter-thread co-ordination, but I know that that's a heavyweight kernel object, and that System.Monitor (Enter/Pulse, etc.) is much more efficient. I've Googled and Googled but cannot find a sensible example.I find System.Monitor very confusing, although




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: