Matomat/Matomat/Program.cs
2011-09-21 22:01:22 +00:00

28 lines
628 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.IsAlive)
{
Thread.Sleep(1);
}
Console.WriteLine("main thread: Worker thread has terminated.");
}
}
}