摘要:
1.ThreadStart 线程执行带参数的方法,new Thread(new ThreadStart(delegate { ThreadTask(firstPage, lastPage); })); 2.System.Threading.ParameterizedThreadStart其实没有必要 阅读全文
posted @ 2019-07-22 18:59
haishu
阅读(9496)
评论(0)
推荐(0)
摘要:
描述: 在 C# 中,System.Threading.Thread 类用于线程的工作。它允许创建并访问多线程应用程序中的单个线程。进程中第一个被执行的线程称为主线程。 案例: static void Main(string[] args) { int num = 100; for (int i = 阅读全文
posted @ 2019-07-22 11:50
haishu
阅读(3969)
评论(1)
推荐(1)

浙公网安备 33010602011771号