Key FeaturesImplement concurrent applications using the Java 9 Concurrency API and its new componentsImprove the performance of your applications and process more data at the same time, taking advantage of all of your resourcesConstruct real-world examples related to machine learning, data mining, natural language processing, and moreBook DescriptionConcurrency programming allows several large tasks to be divided into smaller sub-tasks, which are further processed as individual tasks that run in parallel. Java 9 includes a comprehensive API with lots of ready-to-use components to implement powerful concurrency applications in an easy way, but with a high flexibility to adapt these components to your needs.The book starts with a full description of design principles of concurrent applications and how to parallelize a sequential algorithm. You will then be introduced to Threads and Runnables, which are an integral part of Java 9's concurrency API. You will see how to use all the components of the Java Concurrency API from basics to the most advanced techniques and will implement them in real-world powerful concurrency applications.We use real-world examples of complex algorithms related to machine learning, data mining, natural language processing, and more. You will also get acquainted with the data structures and synchronization utilities to avoid data-race conditions and other critical problems. We also explain reactive streams and how they help in asynchronous stream processing.Finally, the book ends with a detailed description of the tools and techniques you can use to test a Java concurrent application, along with a brief insight into other concurrency mechanisms in JVM.What you will learnMaster the principles that every concurrent application must followSee how to parallelize a sequential algorithm to obtain better performance without data inconsistencies and deadlocksGet the most from the Java Concurrency API componentsSeparate the thread management from the rest of the application with the Executor componentExecute phased-based tasks in an efficient way with the Phaser componentsSolve problems using a parallelized version of the divide and conquer paradigm with the Fork / Join frameworkFind out how to use parallel Streams and Reactive Streams (a new feature of Java 9)Implement the “map and reduce” and “map and collect” programming modelsControl the concurrent data structures and synchronization mechanisms provided by the Java Concurrency APIImplement efficient solutions for some actual problems such as data mining, machine learning, and moreAbout the AuthorJavier Fernández González is a software architect with almost 15 years' experience with Java technologies. He has worked as a teacher, researcher, programmer, analyst, writer, and now as an architect in all types of projects related to Java, especially J2EE.As a teacher, he has taught over 1,000 hours of training on basic Java, J2EE, and the Struts framework. As a researcher, he has worked in the field of information retrieval, developing applications in order to process large amounts of data in Java and has been part of several journal articles and conference presentations as a coauthor. In recent years, he has worked on developing J2EE web applications for various clients from different sectors (public administration, insurance, healthcare, transportation, and so on). Currently, he is working as a software architect at Capgemini, which includes developing and maintaining applications for an insurance company. Also, he is the author of Java 7 Concurrency Cookbook, Packt Publishing.
Author: Javier Fernández González