1) If I have two or more threads in the same vb.net application, and each of them calls a shared function simultaneously with different RADIUS, will each of them get its own AREA?
Yes, since the radius value is passed by value, and the method uses nothing but a local variable declaration.
2) I want to know for each function call if it uses the same local variables or each call creates new instances of local variables?
Each call creates a new instance of its local variables.
3) Will the answers to the above questions be the same. If I have several (2+) single-threaded applications and all of them simultaneously call a function with a different RADIUS value?
Yes. Again, since there is no common repository of information, and since all inputs are passed by value, it is thread safe.
source share