Hi,
I am using a (sealed in c#/MustNotInheritable in
vb) class with a Private constructer, for restricting new instances, which can be used directly without declaration. In this class we have both public and private static(for C#)/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/static, what actually happens internally?
i. Whether object implements thread safety, which automatically synchronize the calls of the multi-users.
ii. Whether the utility class takes cares only single call, without caring other calls?, means working like a single threaded component.
iii. Whether the utility class automatically create instance for the each users.
Please kindly let me know clearly what actually happens and how the threads behave