Matomat/Matomat/Program.cs
2011-09-07 23:41:29 +00:00

28 lines
655 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Matomat
{
class Program
{
static void Main(string[] args)
{
Worker workerObject = new Worker();
Thread workerThread = new Thread(workerObject.DoWork);
workerThread.Start();
while (!workerThread.IsAlive) ;
while (workerThread.ThreadState == ThreadState.Running)
{
Thread.Sleep(1);
}
Console.WriteLine("main thread: Worker thread has terminated.");
}
}
}