c# - Static Methods and Multi-Threading -


can there problems in having static class static methods (no properties, fields or else) , having several threads accessing methods @ same time?

as long there no shared state or external resources, then: no risk whatsoever. you've mentioned "no fields" etc, - long aren't indirectly talking shared state (perhaps via common argument isn't thread-safe in scenario, or via other utility methods calls, share state in messy ways), should fine.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -