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.
When using fork/join for doing recursive multiplication or linear computing, won't there be problem if the order of the computation is not followed.
For eg: Lets take Fibonacci Series computation (Assuming we are going to use make the multiplication as two numbers as the Recursive task)
The result of one thread's computation is needed for the next thread, and we dont want to duplicate the computation of another thread also.
Does fork/join help here?
Can we use fork/join for all kind of recursive task even when there are dependencies between the results of the recursive task and when order of execution needs to be maintained.
Should we consider some guidelines before deciding to use fork/join or identifying a Recursive Task.
Also please explain me how does Java do the real work stealing?