Console.WriteLine("Thread Start/Stop/Join Sample");
Alpha oAlpha = new Alpha();
Thread oThread = new Thread(new ThreadStart(oAlpha.Beta));
while (!oThread.IsAlive);
Console.WriteLine("Alpha.Beta has finished");
Console.WriteLine("Try to restart the Alpha.Beta thread");
catch (ThreadStateException)
Console.Write("ThreadStateException trying to restart Alpha.Beta. ");
Console.WriteLine("Expected since aborted threads cannot be restarted.");
Console.WriteLine("Alpha.Beta is running in its own thread.");