22
Threads
·A C# thread is created with the statement:

Thread thrd = new Thread();
·System.Threading declares a delegate, named ThreadStart, used to define the thread’s processing.
–ThreadStart accepts functions that take no arguments and have void return type.
·You define a processing class that uses constructor arguments or member functions to supply whatever parameters the thread processing needs.
·To start the thread you simply do this:

   Thread thrd = new Thread();
  ThreadStart thrdProc =
new ThreadStart(myProc);
  thrd.Start(thrdProc);