问题:多个访问线程将需要写入到文件中的数据先保存到一个队列里面,然后由专门的 写出线程负责从队列中取出数据并写入到文件中。
http://blog.csdn.net/top_code/article/details/8896047
Java中的ReentrantLock和synchronized两种锁定机制的对比
时间: 2024-08-09 06:33:39
问题:多个访问线程将需要写入到文件中的数据先保存到一个队列里面,然后由专门的 写出线程负责从队列中取出数据并写入到文件中。
http://blog.csdn.net/top_code/article/details/8896047
Java中的ReentrantLock和synchronized两种锁定机制的对比