基于字符串的同步锁:synchronized (str.intern()) {}