7
Tại sao lớp này không an toàn cho luồng?
class ThreadSafeClass extends Thread { private static int count = 0; public synchronized static void increment() { count++; } public synchronized void decrement() { count--; } } Bất cứ ai có thể giải thích tại sao lớp trên không an toàn luồng?