資源簡介
C#初學者,多線程入門例子
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?System.Threading;
namespace?線程練習
{
????class?Program
????{
????????static?void?Main(string[]?args)
????????{
????????????Console.WriteLine(“開始一個新的線程“);
????????????Thread?t?=?new?Thread(new?ThreadStart(ThreadProc));
????????????t.Start();
????????????for?(int?i?=?0;?i?4;?i++)
????????????{
????????????????Console.WriteLine(“主線程:“?+?i
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????920??2014-04-01?21:58??Program.cs
-----------?---------??----------?-----??----
??????????????????920????????????????????1
- 上一篇:C#入門,委托
- 下一篇:正則提取網頁中的圖片
評論
共有 條評論