kathyayini
Programmer
I have 10 global variables (the purpose of making it global is that all the variables are used in different functions). I am using multithreading and i do not want interaction between the threads. is there is a way to make threads to treat all global variables as local. what i mean to say is when i execute 2 thread at the same time, the global variables get manipulated by both the threads.