Let\'s say I have a static class with a static method.
Multiple threads can call this static method concurrently.
Is there a potential for a race condition u
First off, a method is simply a piece of code residing at an address. Each thread calling a method will have a copy of that method and its local variables on its own private stack. So in case a, provided there are no other catches, it should be thread-safe.
Case b depends on a lot of factors:
Generally though, assuming you do access the class members, it should not be considered thread-safe.