Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Distributed Computing in Java 9
  • Table Of Contents Toc
  • Feedback & Rating feedback
Distributed Computing in Java 9

Distributed Computing in Java 9

close
close
Distributed Computing in Java 9

Distributed Computing in Java 9

Overview of this book

Distributed computing is the concept with which a bigger computation process is accomplished by splitting it into multiple smaller logical activities and performed by diverse systems, resulting in maximized performance in lower infrastructure investment. This book will teach you how to improve the performance of traditional applications through the usage of parallelism and optimized resource utilization in Java 9. After a brief introduction to the fundamentals of distributed and parallel computing, the book moves on to explain different ways of communicating with remote systems/objects in a distributed architecture. You will learn about asynchronous messaging with enterprise integration and related patterns, and how to handle large amount of data using HPC and implement distributed computing for databases. Moving on, it explains how to deploy distributed applications on different cloud platforms and self-contained application development. You will also learn about big data technologies and understand how they contribute to distributed computing. The book concludes with the detailed coverage of testing, debugging, troubleshooting, and security aspects of distributed applications so the programs you build are robust, efficient, and secure.
Table of Contents (11 chapters)
close
close
2
Communication between Distributed Applications
3
RMI, CORBA, and JavaSpaces

Java support for parallel programming models


Java provides numerous built-in patterns for parallel programming patterns, including multithreading, Remote Method Invocation (RMI), Sockets, and message passing or shared memory designs.

Multithreading

In parallel programming models, Java can run multithreaded programs on both single and multiple JVM models. In a single JVM, multithreading can be achieved by the Java native threads or another shared memory pattern, such as OpenMP. When you have multiple JVMs, individual programs execute in the respective JVM, and they can communicate using Java APIs such as RMI or MPJ, as shown in the following diagram:

The Java thread class java.lang.Thread can produce instances of Thread to be able to run, spawn, and fork/join multiple threads, as shown in the following example that consists of five threads:

package threads;

public class SpawningThreads {

  public static void main(String args[]){
    int threadCount = 5;
    Thread threadGroup [] = new Thread...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY