I want to read/write to a raw device(which is just a file in linux) asyncly, and I have been using java.nio.channels.AsynchronousFileChannel
.
But it's a 'fake asynchronous', because the AsynchronousFileChannel uses a thread pool to execute the read/write tasks. It's actually calling the synchronized read/write interface offered by OS.
What I really want is a real asynchronous implementation which is io_submit
in linux.
But I can't find it in jdk or any other repositories like guava or apache.
So my question is this :
In java, is there an existing implementation of asynchronous file accessor based on the native
io_submit
interface ?If not, why can't I see anyone else who need it ?