Open-access Interprocess communication with Java in a Microsoft Windows Environment

Abstract

The Java programming language provides a comprehensive set of multithreading programming techniques but currently lacks interprocess communication (IPC) facilities, other than slow socket-based communication mechanisms (which are intended primarily for distributed systems, not interprocess communication on a multicore or multiprocessor system). This is problematic due to the ubiquity of modern multicore processors, and the widespread use of Java as a programming language throughout the software development industry. This work aimed to address this problem by utilising Microsoft Windows' native IPC mechanisms through a framework known as the Java Native Interface. This enabled the use of native C code that invoked the IPC mechanisms provided by Windows, which allowed successful synchronous communication between separate Java processes. The results obtained illustrate the performance dichotomy between socket-based communication and native IPC facilities, with Windows' facilities providing significantly faster communication. Ultimately, these results show that there are far more effective communication structures available. In addition, this work presents generic considerations that may aid in the eventual design of a generic, platform-independent IPC system for the Java programming language. The fundamental considerations include shared memory with semaphore synchronisation, named pipes and a socket communication model.

Java; Windows; interprocess communication


location_on
South African Institute of Computer Scientists and Information Technologists (SAICSIT) Rhodes University, Department of Computer Science, Grahamstown, Eastern Cape, ZA, 6140, Tel: +27 46 603 8635 - E-mail: sacj.editor@gmail.com
rss_feed Acompañe los números de esta revista en su lector de RSS
Ir para arriba