wallaceoc80
Programmer
Hi, I have a question regarding the use of static variables in a multithreading application. I have an application that will be parsing 2 different XML files on different threads. I then want to have a class (say Object1) that has a map containing other objects (Object2).
Items of Object2 can be created by both threads so my question is whether they can both be added to the same map or does the multithreading mean that the map is not accessible accross threads?
I hope I have explained this clearly enough and any help would be appreciated.
Regards,
Wallace
Items of Object2 can be created by both threads so my question is whether they can both be added to the same map or does the multithreading mean that the map is not accessible accross threads?
I hope I have explained this clearly enough and any help would be appreciated.
Regards,
Wallace