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
Post a Comment