如何重新启动在C#.NET 4.0的主题? [英] How to restart a Thread in C# .Net 4.0?

查看:199
本文介绍了如何重新启动在C#.NET 4.0的主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#.Net4.0在VS 2010中。 我该如何重新启动

I'm using C# .Net4.0 in VS 2010. How do I restart a Thread?

这就像我想中止()螺纹和开始()从中再次从头开始? 这可能吗?

Its like I want to Abort() the thread and Start() it from the beginning again? Is it possible?

推荐答案

创建线程的新实例,然后再执行。 线程1 =新的Thread(); thread1.start();

create new instance of thread and execute again. thread1= new Thread(); thread1.start();

这篇关于如何重新启动在C#.NET 4.0的主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆