public MonitorCompareFiles() { dam = new Damager("AllStatistics"); for (int i = 0; i < 6; i++) { tasks.Add(new WorkerCompare("StatWorker[" + i + "]", works, dam)); } }
public WorkerCompare(string nameWorker, ConcurrentQueue <WorkCompare> works, Damager dam) { this.nameWorker = nameWorker; this.works = works; this.dam = dam; thr = new Thread(Run); thr.Start(); }
public MonitorCompareFiles(List <InfoSearch> qe_path) { this.qe_path = qe_path; dam = new Damager("AllStatistics"); for (int i = 0; i < 6; i++) { tasks.Add(new WorkerCompare("StatWorker[" + i + "]", works, dam)); } for (int i = 0; i < qe_path.Count; i++) { works.Enqueue(new WorkCompare(qe_path[i])); } }