Using thread pool for simulation : boost-thread and boost-asio?

This should work fine for your application. When you make the call to io_service. Post, you will pass in the simulation function with inputsi as the parameter.

In that function (presumably a member function of Simulation), just store the result of the computation in the Simulation object, then iterate over the objects after you join the threads to collect the output.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions