I have a Java program running on a Linux system, and I would like to give a higher priority to the I / O scheduler. Is there a JNI / JNA library that will allow me to do this from my code?
You can create an external command and call ionice in your process.
You can get the PID for a Java process using the Java management API, at least when using the Sun JVM. Look at the actual implementations of the control objects, one returns pid (I donβt know what at the moment).
jnative linux, , .
Source: https://habr.com/ru/post/1758497/More articles:Select data columns from .txt to .csv - pythonJBoss database connection pool for auto commit - javawhy java.util.HashMap.getEntry can block my program? - javaIncoming PHP scripts cannot access $ _POST while output buffering? - postStrange construct C encountered in scientific work - cHighlight the grid line in the update panel without sending back - c #What types of conversions are clearly redundant according to the standard? - cC # .NET garbage collection question - garbage-collectionHow to remove a custom item from the Box and ObservableCollection list when a button is clicked - c #Java DataStructure for writing 4 pieces of information - javaAll Articles