c# lock 使用不当引起的死锁 Thread Synchronization (C# and Visual Basic)中提到最好不要lock publi的东西,比如:1. lock(this)2. lock(“string”)3. lock(typeof(int))我在github上放了个死锁的例子。