. .
newthread.Start();
ConsoleKeyInfo cki = new ConsoleKeyInfo();
cki = Console.ReadKey(true);
if (cki.Key == ConsoleKey.P)
{
newthread.Suspend();
Console.WriteLine("Process Is Paused,Press 'Enter' to Continue...");
}
if (newthread.ThreadState>0)
{
ConsoleKeyInfo ckm = new ConsoleKeyInfo();
ckm = Console.ReadKey(true);
if (ckm.Key == ConsoleKey.Enter)
{
Console.WriteLine("Resuming Process...");
newthread.Resume();
}
}
. , . , , . .