
6 Nov
2008
6 Nov
'08
4:19 p.m.
If those requests are scheduled on two different worker threads, they could execute simultaneously, and still cause problems.
Sorry, I forgot that you run one io_service in several threads... Why wouldn't you scale your application using "io_service per CPU" approach, rather than "thread per CPU"? Like this: http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/examples.html#boost...