您的位置:首页 > 其它

第一次多线程记录···

2015-03-18 17:26 169 查看
public class testThred
    {
        public static void _goThred(参数0 p0,参数1 p1)
        {
            try
            {
            //do sth...
             }
            catch (Exception e)
            {
                
            }
        }
    }
    public class test
    {

        static public test(int i,string s)
        {
            Thread worker = new Thread(() => testThred._goThred(参数0 p0,参数1 p1));
            worker.Start();
        }
    }


刚开始把testTered写到test类下、不知道为毛不行····

还需努力啊···
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: