How to launch multiple worker processes in eventmachine?

If you use the EM. Defer method every proc you pass to it will be put in the thread pool (default to 20 threads). You can have as many worker you want if you change the EM.

Threadpool_size worker = Proc. New do # log running job end EM. Defer(worker).

If you use the EM. Defer method every proc you pass to it will be put in the thread pool (default to 20 threads). You can have as many worker you want if you change the EM.

Threadpool_size. Worker = Proc. New do # log running job end EM.

Defer(worker).

Thanks, ok so I write to the queue in my rails app. Regarding this codesnippet, I would put this in the start process and then EM will create 20 threads that will run the 'worker' method? – Blankman Mar 23 at 21:34 yes, just keep in mind that if you use EM for other tasks, the 20 thread are shared between the workers an the tasks.

EM has an internal pool of threads used for everything. I suggest you to dig into the manual of EM regarding the deferrables. – ALoR Mar 23 at 21:58.

Multiple worker processes in eventmachine is launched (without quotes):. Launch multiple worker processes in eventmachine.

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