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 this is basic thread question: I got three threads, when i exectue those three threads i got one output and again i execute i got different output.
why every time the order of output's can't able to predict in threads then it's no use of going to create threads in first point.
Multi-threading is all about concurrent execution.
Thread scheduling and CPU allocation would be architecture/OS dependent and as such beyond the scope of Java (or any other programing language).
The idea is to be able to execute multiple processes concurrently without worrying about the order in which they execute. If the order is a concern in such a situation you might have to look up Thread synchronization and ways to achieve it.