mysql死锁的一些案例

mysql死锁的一些案例

String filename = "a.txt";
RandomAccessFile rf = new RandomAccessFile(filename, "rw");
FileChannel fc = rf.getChannel();
//将文件大小截为0
fc.truncate(0);

猜你喜欢

转载自fs20041242.iteye.com/blog/1732749