synchorized 程序怎么知道这个共享资源被锁了?楼主这可以多说几句吗?,没太理解想问的点,难道是monitorenter和monitorexit