标签:简单的 lock div string lin main void span tar
static void Main(string[] args) { lock (_lock1) { var t = new Thread(() => { lock (_lock1) { Console.WriteLine("Lock1: "); } }); t.Start(); t.Join(); } Console.ReadKey(); } static readonly object _lock1 = new object();
标签:简单的 lock div string lin main void span tar
原文地址:https://www.cnblogs.com/HCCZX/p/11532815.html