from:https://blog.csdn.net/codedoctor/article/details/74358257 首先先说一个线程不同步的例子吧,以下为售票员的模拟售票,多个售票员出售100张门票,代码如下: using System; using System.Text; using System.Collections.Generic; using System.Threading; namespace threadTest { class Program { class Thr…