Totally Nerdy Information

Mike Heath’s Blog

Java Threading and Signal Handling

While working on AIOJ, I came across an issue with java.lang.Object.wait() and and calling java.lang.Object.notify() from a signal handler.
With POSIX AIO, there are two ways to receive notification that an I/O operation has completed. One is through a signal and the other is by calling a specified method in a temporary thread. When […]

Calling Java Methods From a Signal Handler

As part of AIOJ, I need a way to invoke Java methods from inside of a signal handler. When I issue a POSIX AIO function from a native method, I tell it to raise a particular signal when the operation completes. The signal I am using is SIGRTMIN + 5. This signal […]

Asynchronous File I/O in Java 0.1 release

I made the first release of my Asynchronous File I/O in Java library. The .jar file can be downloaded here. This release uses a java.util.concurrent.Executor to call java.nio.channels.FileChannel methods in a separate thread than the caller. This is certainly not the most ideal way of doing AIO but it’s a start and […]

I just posted the API to the Asynchronous File I/O in Java framework I’ve been working on at Apache. My plan is to have some functional code posted by January 27. The initial code release will use the java.util.concurrent package to provide asynchronous operations. Support for POSIX AIO will come out soon […]