我对Java同步有疑问。我想知道我的类中是否有三个Synchronized方法,一个线程在一个同步方法中获取锁,另外两个将被锁定?我问这个问题是因为我对以下陈述感到困惑。Whileathreadisinsideasynchronizedmethodofanobject,allotherthreadsthatwishtoexecutethissynchronizedmethodoranyothersynchronizedmethodoftheobjectwillhavetowait.Thisrestrictiondoesnotapplytothethreadthatalreadyhast