请教循环中的线程问题
我做了一个简单的下载程序,用一个线程循环下载一个文件列表
用下面的方式 不能正确显示下载状态 我对线程不是很了解
请各位高手指点 该怎样做
System.Threading.Thread thread001 = null;
DownloadClass dc = new DownloadClass(); //下载类
System.Threading.ThreadStart startDownload = new System.Threading.ThreadStart(dc.DownloadFile);//dc.DownloadFile是下载类中的函数
for (int i = 0; i < rc.Count; i++)
{
thread001 = new System.Threading.Thread(startDownload);
thread001.Start();
}