[erlang-questions] How to use "jobs": schedule tasks by core number

Ulf Wiger ulf@REDACTED
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:

https://github.com/esl/jobs/wiki/Counter-based-regulation

BR,
Ulf W

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
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
http://feuerlabs.com






More information about the erlang-questions mailing list