开发者

Implementing efficient multithreaded file I/O in C++

I'm currently developing a custom cross-platform file server (C++, boost). Obviously, it is going to do a lot of reading from and writing to HDD. To further complicate the matters, it is also going to be multithreaded and to use asynchronous socket I/O (with asio).

Now, I wonder, are there any well-known practices, patterns or approaches I can use? 开发者_C百科Maybe some existing libraries or something? I can try and develop it from scratch, of course, but it does feel like reinventing a wheel. Any generic recommendations will be appreciated as well.


Few threads I have seen on quick Googling. Please check if this helps or not.

  • Multithreaded file I/O
  • Pthread tutorial
  • Leader and follower pattern for efficient multi-threaded I/O
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜