Thank you Jeff for the examples.
I have some follow-up questions
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?
SCEA EE5, CSM, PMP, IBM OOAD with UML, SCDJWS, SCWCD, SCJP 1.5