When it comes to synchronized lock strings, there are some problems, see a nice article. Reference link: https://blog.csdn.net/daiming573/article/details/105239767