What have you tried so far?
Have you seen the two Sticky links at the top of this forum?
The second Sticky link on important links and answers to commonly asked questions contains a bunch of links to resources that may help you out.
Specifically check out the MSDN Library.
Hope this helps!
-Frinny
try something like below
class MyThread
{
public int Data1;
public string Data2;
public void Fn1(object y)
{
Data1 = (int)y;
Console.WriteLine(Data1);
Thread.Sleep(5000);
}
public void Fn2(object x)
{
Data2 = (string)x;
Console.WriteLine(Data2);
}
}
class Program
{
static void Main(string[] args)
{
MyThread w = new MyThread();
w.Data1 = 42;
w.Data2 = "aa";
Thread newThread1 = new Thread(new ParameterizedThreadStart(w.Fn1));
Thread newThread2 = new Thread(new ParameterizedThreadStart(w.Fn2));
newThread1.Start(10);
newThread2.Start("test");
}
}