
Gavin Lambert wrote
It does. It's fairly common to allocate 1.5x or 2x #processors threads to the pool. What happens then is that Windows will keep up to #processors threads (or whatever other concurrency value you specify) processing from the completion port at all times -- if one of the worker threads goes to sleep on some resource other than the completion port itself (during the course of whatever processing it's doing) then it will allow one of the "extra" threads to be woken if needed.
Given that in the sample use case I've there are only 2 threads that are working on ioservice I think it doesn't matter what value set as concurrency_hint. Let me know if I'm missing something. -- View this message in context: http://boost.2283326.n4.nabble.com/boost-asio-synchronous-vs-asynchronous-op... Sent from the Boost - Users mailing list archive at Nabble.com.