using System;
using System.Threading;
namespace ThreadThing
{
///
/// Summary description for Class1.
///
class Class1
{
static int COUNT = 10000;
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{
Thread t1, t2, t3;
t1 = new Thread(new ThreadStart(A));
t2 = new Thread(new ThreadStart(B));
t3 = new Thread(new ThreadStart(C));
t1.Start();
t2.Start();
t3.Start();
Console.ReadLine();
}
static void A()
{
for (int i = 0; i < COUNT; i++)
{
Console.WriteLine("A "+i);
}
}
static void B()
{
for (int i = 0; i < COUNT; i++)
{
Console.WriteLine("B "+i);
}
}
static void C()
{
for (int i = 0; i < COUNT; i++)
{
Console.WriteLine("C "+i);
}
}
}
}