If i have a synchronized method and two threads use the same instance to run the method ,but i run one thread by run(),and other by start().Does the synchronization of the method still prevents the threads from accessing the method at the same time?
Yes Ashwin,i do agree by what you say,
but even if the thread is using main methods call stack,but if a method is synchronized,then how come two different threads access a sync. method on a single object?
the only difference is that one method uses its run() directly,but the other uses run() via start(),so i guess both will try to acquire lock on the same object.
Is it true?