Code java : file clase A{ privatestaticfinal Object lock=new Object(); syn(lock){ .. call procedureA (); } syn{ .. call procedureB (); } } --- A a1 =new A(); a1 A a1 =new A(); A a2 =new A(); a1.syn(); a1.syn(); it is ok for multiple thread a1.syn(); a2.syn(): it it not ok for multiple thread