[erlang-questions] How to use "jobs": schedule tasks by core number
Sat Apr 14 20:24:30 CEST 2012
What?! My source code complicated?
Apologies for never getting around to writing down some examples.
Here is a simple one:
On 14 Apr 2012, at 09:44, Max Lapshin wrote:
> Hi. I have 100 tasks to execute, each takes about 10 seconds and uses 1 core.
> I want them to run 8 simultaneously (by core number). What is the best way?
> I think that esl/jobs is right what I need: create some queue and let
> it schedule jobs. If yes, so can anyone share me a simple snippet of
> code, how to do it?
> I haven't found even any examples in google, only jobs source code,
> which is rather complicated.
> Next question will be: how to distribute these tasks among cluster?
> erlang-questions mailing list
Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
More information about the erlang-questions