在C#中添加三个线程去启动运行一个方法,并让该方法中的循环打印输出
发布时间
阅读量:
阅读量
添加三个线程同时启动执行某一方法,并依次调用某方法中的打印输:ABC ABC ABC ABC

具体实现的代码示例如下:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace SuperMarket.Test
{
class Program
{
staticvoidstring[] args)
{
myTests mt new myTests();
mt.RunTest();
}
全部评论 (0)
还没有任何评论哟~
