Parallel Divide and Conquer with CompletableFutures (Heinz Kabutz)


Details
CompletableFutures are the rage today. We use them to describe complicated concurrent workflows. For example, HttpClient in Java 11 returns them when we send asynchronous requests. They can also describe parallel divide and conquer workflows. In this talk, we will start by parallelizing a large Fibonacci calculation with Fork/Join. We will then change java.math.BigInteger to multiply in parallel. You will learn how to patch with the new modules system. Then we will show the issues with Fork/Join and show a solution based on CompletableFuture. This talk will be interesting for intermediate to advanced Java programmers.
No slides - just code :)
---
Dr Heinz Kabutz - https://www.javaspecialists.eu/
Heinz is the mastermind behind The Java Specialists' Newsletter. He has a PhD in Computer Science. Heinz has programmed significant portions of several large Java applications and has taught Java to thousands of professional programmers. He is a regular speaker at all the major Java conferences.
Heinz was chosen as a Java Champion by Sun Microsystems, the inventors of Java, for his work in advancing Java.
Ein Treffen der JUG Hannover im iJUG e.V.

Parallel Divide and Conquer with CompletableFutures (Heinz Kabutz)