Step 1: writes a class with some methods.
Class TestingThread
{
Public static void SendMail()
{
//Write the code to send mail
}
}
Step 2: Write a ThreadStart delegate and point the address of SendMail.
ThreadStart ts=new ThreadStart(TestingThread.SendMail())
Step 3: Create a thread
Thread t=new Thread(ts);
Step 4: finally start the Threads.
t.Start();
Suthish NairPosted Apr 13, 2011, 3:21 AM
Shinuraj, above article taken from "http://www.roseindia.net/java/thread/life-cycle-of-threads.shtml"? Are both these articles belongs to you?
Dinesh BeniwalPosted Apr 13, 2011, 1:42 AM
Good article