|
Boost Users : |
Subject: [Boost-users] multi-thread server with boost::asio or boost::thread?
From: Matheus Araújo Aguiar (matheus.pit_at_[hidden])
Date: 2009-06-01 14:36:00
Hello boost users,
I'm currently working on a MMO game server and have been using the
boost::asio to deal with sockets. For now i'm concerned with responsiveness
and scalability, and have been thinking of two ways to achieve that.
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.
Thanx in advance and best regards!
-- Matheus Araújo Aguiar Computer Scientist matheus.pit_at_[hidden]
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