logo       

Re: handling disk IO within asio programs: msg#00003

lib.boost.asio.user

Subject: Re: handling disk IO within asio programs

On 11/10/06, Christopher Kohlhoff <chris-34HiQXrhQN1Wk0Htik3J/w@xxxxxxxxxxxxxxxx> wrote:

The "services" example included with asio does half of what you
want -- it uses a background thread to perform logging
operations asynchronously to the main thread. The missing
element in that example is posting the completion handler back
to the application.
Chris,
Chris,

Thanks, those are good examples to hack what I want.

Is the following  reasoning correct ?
For file IO (compared to the services example) it is best to create
 a new thread for every completed write otherwise
I don't see how a single background thread can scale (or keep a
thread pool)

I think asio should have some file_service for this very common need
What do you think ?

regards
jose
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________
asio-users mailing list
asio-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/asio-users
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise