//开启新的线程
System.Threading.Thread thread1 = new System.Threading.Thread(new System.Threading.ThreadStart(startTask));
thread1.Priority = System.Threading.ThreadPriority.Lowest;
thread1.Start();//开启新的线程
System.Threading.Thread thread2 = new System.Threading.Thread(new System.Threading.ThreadStart(startTask));
thread2.Priority = System.Threading.ThreadPriority.Lowest;
thread2.Start();
我开启呢2个线程来执行任务..任务是循环执行修改 DataGridView 中的行可是每个线程都把任务完整的执行呢一次....连续修改呢2次...
System.Threading.Thread thread1 = new System.Threading.Thread(new System.Threading.ThreadStart(startTask));
thread1.Priority = System.Threading.ThreadPriority.Lowest;
thread1.Start();//开启新的线程
System.Threading.Thread thread2 = new System.Threading.Thread(new System.Threading.ThreadStart(startTask));
thread2.Priority = System.Threading.ThreadPriority.Lowest;
thread2.Start();
我开启呢2个线程来执行任务..任务是循环执行修改 DataGridView 中的行可是每个线程都把任务完整的执行呢一次....连续修改呢2次...
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货