Boost logo

Boost Users :

Subject: Re: [Boost-users] boost asio synchronous vs asynchronous operations performance
From: Donald Alan (donaldalan003_at_[hidden])
Date: 2014-03-24 10:35:22


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-operations-performance-tp4660578p4660657.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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