package com.gxx.threads.study.test21; /** * 方法处理器 * @author Gxx */ public class MethodProcess extends MethodProcessParent { /** * 方法A */ public synchronized void methodA(){ System.out.println("[" + Thread.currentThread().getName() + "]进入methodA~"); methodB(); } /** * 方法B */ public synchronized void methodB(){ System.out.println("[" + Thread.currentThread().getName() + "]进入methodB~"); methodC(); } /** * 方法C */ public synchronized void methodC(){ System.out.println("[" + Thread.currentThread().getName() + "]进入methodC~"); super.methodD(); } }