C#??????У???????????÷????
???????????? ???????[ 2016/3/3 11:25:53 ] ????????.NET ??????????? ???
?????????????????????ù????????????÷?????ò??????????????й???????????????????в??????????????~~
????1???????????????????????????????п?????????????????????????????????????????????????????????Э??????????????????????????Э?????????????????е?????????????ò????????????????????л??и???????????
????2????????????
??????1????????????÷?????Thread oGetArgThread = new Thread(new ThreadStart(() =>{});?????÷?????????????ù???????????ThreadStart???????С???ThreadStart???????????
????public delegate void ThreadStart();
?????????????в???????з????????С???????????????£?
static void Main(string[] args)
{
Thread oGetArgThread = new Thread(new ThreadStart(Test));
oGetArgThread.IsBackground = true;
oGetArgThread.Start();
for (var i = 0; i < 1000000; i++)
{
Console.WriteLine("????????" + i);
//Thread.Sleep(100);
}
}
private static void Test()
{
for (var i = 0; i < 1000000; i++)
{
Console.WriteLine("?????????" + i);
//Thread.Sleep(100);
}
}
?????????????в?????з????????????????С?????????????巽??д????????????
static void Main(string[] args)
{
Thread oGetArgThread = new Thread(new System.Threading.ThreadStart(() =>
{
for (var i = 0; i < 1000000; i++)
{
Console.WriteLine("?????????" + i);
//Thread.Sleep(100);
}
}));
oGetArgThread.IsBackground = true;
oGetArgThread.Start();
}
?????????????????????????????????£?
????c#???????
???????????????????????????????????????????С?
??????????????????????????????????????е?????в????????з??????????в??????з??????????????????????????new Thread()?????????????
????public Thread(ParameterizedThreadStart start);
????public Thread(ThreadStart start);
????public Thread(ParameterizedThreadStart start?? int maxStackSize);
????public Thread(ThreadStart start?? int maxStackSize);
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11