We use a class variable for simplicity as it is easy to access both from the class and instance levels. Using a class or instance variable should not affect thread safety.
We use a class variable for simplicity as it is easy to access both from the class and instance levels. Using a class or instance variable should not affect thread safety.