May 2017
Intermediate to advanced
414 pages
13h
English
In the preceding recipe's output, we clearly see the parallel computation time is way less than the sequential implementation.
We just created the future of a Fibonacci number and composed it using for-comprehensions; we also call back on the final future rather than blocking each of them, thus we will get parallel computation capabilities from future.
After you run the preceding application, its output will be as follows:
sum is 1354645321 time taken in sequential computation 1.477588591743776E12 sum is 1354645321 time taken in parallel computation 0.131 seconds
Read now
Unlock full access