Can two threads call two different static synchronized methods of the same class?
No. The static synchronized methods of the same class always block each other as only one lock per class exists. So no two static synchronized methods can execute at the same time.
No comments:
Post a Comment