加锁两次

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

加锁两次

xiaobao li
org.apache.flink.runtime.entrypoint.ClusterEntrypoint的runCluster方法已经加锁了,synchronized
(lock)锁住了整个方法

那么在这个方法内部又调用了initializeServices方法,这个方法里面又有synchronized (lock),加锁两次有啥意义吗?