阅读背景:

多线程写文件是否提高效率?

来源:互联网 
You can use multiple threads writing a to a file e.g. a log file. but you have to co-ordinate your threads as @Thilo points out. Either you need to synchronize file access and only write whole record/lines, or you need to have a strategy for allocating regions of the file to different threads e.g. re-building a file with known offsets and sizes. You can use multiple threads writing a to a fil



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: