D
dmcreyno
I recently stumbled across this idiom.
public static synchronized int getThreadCountMax()
{
synchronized (ARTClientThread.class)
{
return threadCountMax;
}
}
Its a synchronized static method with a synchronized block. Looks
redundant to me. Doesn't the synchronized static method use the class
object?
public static synchronized int getThreadCountMax()
{
synchronized (ARTClientThread.class)
{
return threadCountMax;
}
}
Its a synchronized static method with a synchronized block. Looks
redundant to me. Doesn't the synchronized static method use the class
object?