Non static synchronized methods lock this is this kind of object, a synchronized block of code to create an object ACTS as a lock, and it can realize two locks the?
CodePudding user response:
Yes, two locks, the first is this, the second is the new object