Boost logo

Boost Users :

Subject: [Boost-users] BOOST ASIO relation between I/O Service and a Socket and a Thread
From: Gokulakannan Somasundaram (gokul007_at_[hidden])
Date: 2011-11-18 12:06:03


Hi,
   By going through ASIO, i find that the I/O Service gets run on a thread
and the socket gets created with a I/O Service. So the data for the socket
has to be always sent through the same thread. For trying take advantage of
data localization, i am exploring whether it would be possible to have a
thread per multi-core processor running the io_service::run() method. I am
just wondering there is a way where in i can change the io_service
associated with the socket. Can someone help me with that?

Thanks,
Gokul.



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