mysql死锁的一些案例
String filename = "a.txt"; RandomAccessFile rf = new RandomAccessFile(filename, "rw"); FileChannel fc = rf.getChannel(); //将文件大小截为0 fc.truncate(0);
mysql死锁的一些案例
String filename = "a.txt"; RandomAccessFile rf = new RandomAccessFile(filename, "rw"); FileChannel fc = rf.getChannel(); //将文件大小截为0 fc.truncate(0);