进行重要数据操作后,及时sync,写入磁盘
try {
Runtime.getRuntime().exec("sync");
} catch (IOException e) {
e.printStackTrace();
}
进行重要数据操作后,及时sync,写入磁盘
try {
Runtime.getRuntime().exec("sync");
} catch (IOException e) {
e.printStackTrace();
}