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
精彩评论