If you wanted to Resume thread into other class then this will help you...
I have updated your code....
namespace CAthreads
{
class clsthread2
{
Thread t1;
public void thread1()
{
for (int i = 0; i < 10; i++)
{
t1 = Thread.CurrentThread;
Console.WriteLine(t1.Name + "=" + i);
if (i == 5)
{
Console.WriteLine(t1.Name + " is going to suspend");
t1.Suspend();
}
}
}
public void ResumeThread()
{
if (t1.ThreadState == ThreadState.Suspended)
{
t1.Resume();
}
}
}
class Class1
{
static void Main()
{
clsthread2 obj1 = new clsthread2();
obj1.ResumeThread();
ThreadStart tstart1 = new ThreadStart(obj1.thread1);
ThreadStart tstart2 = new ThreadStart(obj1.thread1);
Thread thr1 = new Thread(tstart1);
Thread thr2 = new Thread(tstart1);
thr1.Name = "NTR";
thr2.Name = "ANR";
thr1.Start();
thr2.Start();
Console.Read();
}
}
}