Concurrency

Concurrency for optimal multi-core performance. In this edition, we were privileged to have as a reviewer Brian Goetz, co-author of Java Concurrency in Practice (Addison-Wesley). We updated Chapter 23, with Java SE 8 technology and idiom. We added a parallelSort vs. sort example that uses the Java SE 8 Date/Time API to time each operation and demonstrate parallelSort’s better performance on a multi-core system. We include a Java SE 8 parallel vs. sequential stream processing example, again using the Date/Time API to show performance improvements. Finally, we added a Java SE 8 CompletableFuture example that demonstrates sequential and parallel execution of long-running calculations.

SwingWorker class. We use class SwingWorker ...

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.