|
Boost Users : |
Subject: Re: [Boost-users] multi-thread server with boost::asio or boost::thread?
From: Roman Shmelev (rshmelev_at_[hidden])
Date: 2009-06-01 15:09:08
> The first way would be multiple calls to io_service.run, each in a different
> thread, using the strand object to synchronize the callback handlers. The
> other way is to explicit use threads and locks with the boost::thread lib.
> So could you point me what would be the main differences (maybe advantages
> and disadvantages) between both ways? What way do you think is it better? I
> want to hear some opinions.
first way. Because it is natural.
The second way is probably something that has sense for synchronous operations,
but words "scalability" and "responsiveness" are often used with word "async".
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