This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi... i have a very basic question about threading. I know that to use threading in our class we need to either implement Runnable interface or extend the Thread class to our class and then call start() to bring the thread into its life cycle. A thread can be brought into its life cycle only after calling is one and only one method i.e. start().
My question is if i call run() directly then what it is doing exactly ? What i think is that it is just calling the run() and working as a normal class method only. And it has not behaving like a thread i.e. not bringing the thread into its life cycle.
Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."