Not sure how it works but I have a question:- Does static make the application slow as same variable or method is shared throughout the application, and while one request is using the method or variable other one has to wait for it to be released.
No, it doesn't. Also, .NEt doesn't automatically lock variables just because you access them from differnent parts of the program at the same time. You would have to implement the locking yourself.
No, it doesn't. It just makes the application thread-unsafe. If you want it to be safe, you must lock the function/variable, and then yes, it has to wait. (This only affects multi-thread environment, if you use only one thread, it doesn't matter, as the function cannot run 'twice' at a time)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With