I'm new to concurrency and would like to ask the following question. I have the following class:
public class MyClass{
    public synchronized void method1(){
         //do some
    }
    public synchronized void method2(){
         //do another some
    }
}
So, as far as understand when some thread start executing one of those methods it acquires a lock on this. My question is if it means that any other thread cannot execute any method of the same object unless the thread release this and what should I do if want to permit the concurrent invocation?
 
     
     
    