I am trying to use boost asio in order to download 100 files in parallel, from a server with max speed 100kbps while my PC has 10mbps.
I decided against using threads due to the serious performance hit. I learned about select
and I/O Multiplexing
. I was pointed to this question: select functionality in boost::asio but the answer doesn't provide enough details.
In my application I use the sync_client
example from here.
Please explain how to download 100 files in parallel in boost asio without threads, with some kind of select
mechanism?