如下代码: class Test{ private static object sync = new Object(); public void Knock(){ lock(sync){ Console.Write(“Wait!”); } } } 不用lock的话应该怎样实现?