Blog

Output of following code:

public class SomeClass {

public void InitLoopInThread() {
for (int z = 0; z < 3; z++) {
Console.WriteLine(“My Thread {0}”,z);
}
}

}

class Program {

static void Main(string[] args) {
SomeClass someClass = new SomeClass();
Thread t = new Thread(new ThreadStart(someClass.InitLoopInThread));
}

}