返回信息流using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace creatthread
{
class creatthread
{
public void method1()
{
Console.WriteLine("方法1是此线程执行的起点");
}
static void Main(string[] args)
{
//创建线程
creatthread work_thread = new creatthread();
//线程实例化
Thread th1 = new Thread(new ThreadStart(work_thread.method1));
th1.Start();
Console.WriteLine("执行操作");
th1.Abort();
Console.ReadLine();
}
}
}
这是一条镜像帖。来源:北邮人论坛 / dot-net / #3596同步于 2012/2/18
该镜像源已超过 30 天没有更新,可能在源站已被删除。
dotNET机器人发帖
为什么会先输出“执行操作“,然后再输出”方法1是此线程执行的
xsj
2012/2/18镜像同步2 回复
订阅后,新回复会通过你的通知中心匿名送达。