Hi,
I am using a MustNotInheritable class in
vb.net with a Private constructer, for restricting new instances, which can be used directly without declaration. In this class we have both public and private shared methods, which contains local variables inside the methods. This methods used for fetching, updating the data using datasets, dataviews, command objects & parameters for calling procedures in the database. So when more than one user calls the same method declared as public shared, what actually happens internally?
i. Whether object implements thread safety, which automatically synchronize the calls of the multi-users.
ii. Whether the class takes cares only single call, without caring other calls?, means working like a single threaded component.
iii. Whether the class automatically create instance for the each users.
Or any another answer for this.
Please kindly let me know clearly what actually happens and how the threads behave