C# 多线程 code练习
2015-01-20 14:34
99 查看
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Thread t = new Thread(WriteY);
t.Start();
while (true)
{
Console.Write("X");
}
}
static void WriteY()
{
while (true)
{
Console.Write("Y");
}
}
}
}
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Thread t = new Thread(WriteY);
t.Start();
while (true)
{
Console.Write("X");
}
}
static void WriteY()
{
while (true)
{
Console.Write("Y");
}
}
}
}
相关文章推荐
- C#学习-多线程小练习
- FM并发编程练习:改写苏飞的C#多线程网站压力测试程序
- c# 中获取主机的DNS域名(练习单线程,多线程,线程池)
- 实战(代码)练习 C# 多线程
- C#的多线程机制初探
- 在C#中编写多线程应用程序,简单!
- [CodeProject C#]A Win32 Library for .NET
- CodePlus C# 代码生成器 V1.0 推出啦!
- 使文件下载的自定义连接支持 FlashGet 的断点续传多线程链接下载! C#/ASP.Net 实现
- 101 Visual Basic and C# Code Samples
- 在C#中编写多线程应用程序
- [导入]Where can I find sample C# code for simple threading?
- C# Code Review Checklist
- 在C#中编写多线程应用程序(转载)
- CodeProject - Worker Threads in C# (翻译)
- 在C#中编写多线程应用程序
- [CodeProject C#]Read/Write Config files
- Asp.net(c#)实现多线程断点续传
- [导入]How can I run another application or batch file from my Visual C# .NET code?
- 在C#中编写多线程应用程序,简单!