Hi all;
I hope u don't ignore my question this time because whenever I ask questions
here nobody answer them T_T. what's the problem is they are too trivial in away
you don’t even want to answer them?? I really don’t know O_o
Anyway this is my problem;
i have a method which generate the user location;
and i wanna use multi threading to get the position of the user concurrently;
Hashtable ht = new Hashtable();
public void XYZ(List<User> p2)
{
for (int i = 0; i < p2.Count();i++ )
{
Thread t = new Thread(userLocation);
int g = p2[i].getGPSID();
t.Start(g);
}
}
public static void userLocation(object gpsid)
{
// generate the position x and y
ht.Add(gpsid, new Location(x, y));
}
i have read a tutorial about multithreading however am not sure if this is the right
way so that all the new created thread will work concurrently
thanks a lot;