using System.Threading; //增加宣告
Thread t1 = new Thread( Function ); //使用多執行緒,括弧放要 執行的程式
t1.start(); //開始執行
private void Function()
{
for(int intA=0;intA<10;intA++)
{
intA+=intA;
}
}
文章標籤
全站熱搜
using System.Threading; //增加宣告
Thread t1 = new Thread( Function ); //使用多執行緒,括弧放要 執行的程式
t1.start(); //開始執行
private void Function()
{
for(int intA=0;intA<10;intA++)
{
intA+=intA;
}
}