Creating multiple threads with same method(ie, display)

Jul 11 2012 5:18 AM
i have a method called display(string name, int timer). Inside this display i am creating an object to hold name and timer value and assigning the name to the thread.

from main method i am creating multiple threads to run display() logic simultaneously. My problem is even though seperate objects created for each thread, objects values are overwritten.

Attaching the source code here.. Can some please help me if you know...

Attachment: prog.rar

Answers (1)