如何在控制台C中同时执行2行# [英] How Do I Perform 2 Lines At The Same Time In Console C#

查看:55
本文介绍了如何在控制台C中同时执行2行#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#的控制台应用程序中,我正处于需要同时执行2个任务的地方..有什么方法可以做到这一点吗?

请帮助

In C# in console application program i am in the middle of something where i have to perform 2 tasks at the same time..is there any way to do this??
pls help

推荐答案

是:看看创建一个线程(甚至两个):线程类 [ ^ ]

这里有一个关于线程的教程:https://msdn.microsoft.com/en-us/library/aa645740(v=vs.71)。 aspx [ ^ ]或本网站上有大量关于该主题的文章: Google [ ^ ]
Yes: look at creating a Thread (or even two): Thread class[^]
There is a tutorial on threading here: https://msdn.microsoft.com/en-us/library/aa645740(v=vs.71).aspx[^] or there are loads of articles on the subject on this site: Google[^]


这篇关于如何在控制台C中同时执行2行#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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