23 Oct
2012
23 Oct
'12
1:19 p.m.
Currently I has a single threaded server based on boost ASIO. This works correctly most of the time. However on systems where i know that the disk's are slow. , the server grinds to a halt, when dealing with the blocking disk IO. I could not find any examples or documentation in ASIO, in how to get round these issues. It appears that ASIO does not provide any support for async' disk IO. So I assume this is handled by use of threads ? Are there any examples of using ASIO with threaded disk IO, since this must be very common use case ? Is the strand functionality appropriate for handing disk IO, in an async' manner. Any recommendations/advice on this issues would be greatly appreciated. Best regards, Ta, Avi