I / O priority in Java
I want to use the vista feature of I / O prioritization Is there a platform independent way to set the I / O priority of operations in Java (such as libraries in Java 7), or should it be restored to sleep filter or JNX solution? Do other platforms have similar functions?
Solution
This is difficult for Java to support because it depends largely on the functions of the underlying operating system Java has worked very hard to provide APIs that work across multiple platforms It's not always successful, but it's a different subject
In this case, Java API needs to be implemented across multiple versions of windows, multiple versions of Linux, Solaris and various other third-party platforms It is difficult to propose a platform independent IO priority model that can be mapped to OS platform series functions
For now, I suggest you find a platform specific solution beyond java to make necessary adjustments; For example, run external commands using process, etc., or perform work in wrapper scripts before starting the JVM