This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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?