I\'m using RandomAccessFile in java:
file = new RandomAccessFile(filename, \"rw\");
...
file.writeBytes(...);
How can I ensure that this data i
here's what i do in my app:
rf.close();
rf = new RandomAccessFile("mydata", "rw");
this is give 3-4times gain in performance compared to getFd().sync() and 5-7 times compared to "rws' mode
deoes exactly what the original question proposed: passes on unsaved data to the OS and out of JVM. Doesn't physically write to disk, and therefore introduces no annoying delays