![]() |
Boost : |
From: Christopher Kohlhoff (chris_at_[hidden])
Date: 2007-04-26 09:27:41
On Wed, 25 Apr 2007 13:36:52 +0530, Gaurav.Jain_at_[hidden] said:
> 1. Can I use same io_service for accepting and socket creation in
> multiprocessor scenario?
Yep.
> If yes, does it have any constraint which I
> should take into consideration while designing an application?
No, I don't think so.
> 2. If I have more than one acceptor running and each of them accepting
> connection on same io_service on which they are created, how should one
> handle of processing of client's requests?
Do you mean you will have one acceptor for each io_service, and one
io_service for each CPU? If you expect to have about the same amount of
work for each type of connection, then you could just handle all
per-connection request handling on the same io_service as the acceptor.
However, I'm not sure I completely understand what design you're
proposing in this second question.
Cheers,
Chris
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk