Re: [Boost-users] Strange boost::threads behaviour

20 Feb
2015
20 Feb
'15
1:52 a.m.
On 19/02/2015 21:11, Lorenzo Trivelli wrote:
While thread-per-connection is a popular model for older or small-scale software (because it's easy to program), performance suffers quite significantly when a large number of connections are in use, especially when each connection needs to contend on the same locks. Especially if the workload is mostly I/O bound rather than CPU bound, you may want to consider a "properly" async design (eg. using Boost.Asio) where #threads == #cores (or thereabouts) and connection processing can shift between threads as needed.
Well, as I said that is not an error if some synchronization objects (eg. mutexes) still exist.
3693
Age (days ago)
3693
Last active (days ago)
0 comments
1 participants
participants (1)
-
Gavin Lambert