Boost logo

Boost Users :

Subject: [Boost-users] asio: how to handle disk IO, recommendations
From: Avi Bahra (avibahra_at_[hidden])
Date: 2012-10-23 09:19:18


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net