同步 同步(英语:Synchronization [ˌsɪŋkrənaɪ'zeɪʃn]),指对在一个系统中所发生的事件(event)之间进行协调,在时间上出现一致性与统一化的现象.说白了就是多个任务一个一个执行,同一时刻只有一个任务在执行.主要应用是互斥资源的访问.下面是实现同步的一个例子: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Thre…