this is the basic
static void Main(string[] args)
{
for (int i = 0; i < 100; i++)
{
Thread t = new Thread(new ParameterizedThreadStart(MyMethod));
t.Start(i);
}
Console.ReadLine();
}
public static void MyMethod(object input)
{
Console.WriteLine("Hello from MyMethod " + input.ToString());
}
So you can pass in an object to thread. if you need to print in console from 1 to 99, not like now, you need to use ReaderWriterLock.
Ok.
If I am wrong tell me please someone because i am learning .NET.