I know threading has been asked a lot here, especially regarding the use of global variables. But I want to be clear on something cause I am seeing some funky behavior.
I have some master data tables that are created before any threading is run. These tables are large and I do not want each thread to get its own copy. So these tables are global variables. The threads need to read the data in the tables, but do not need to update them in anyway.
So the question is: "Are there any contention issues with threads when just *reading* data from global variables but not updating them?"
Thanks,
kevin
I have some master data tables that are created before any threading is run. These tables are large and I do not want each thread to get its own copy. So these tables are global variables. The threads need to read the data in the tables, but do not need to update them in anyway.
So the question is: "Are there any contention issues with threads when just *reading* data from global variables but not updating them?"
Thanks,
kevin
Comment