marioroy has asked for the wisdom of the Perl Monks concerning the following question:
Edit: The option name was renamed to "user_tasks". Updated the URL.
Dearest Perl Monks,
A upcoming Many-core Engine for Perl (MCE) release 1.2 is near completion. The release will support tasklets. The question I have is should the new option name stay "tasklets" or be named "sets" or something else?
use threads; use threads::shared; use MCE; my $mce = MCE->new( input_data => \@ip_list, chunk_size => 500, tasklets => [{ max_workers => 8, use_threads => 0, user_func => \&pinger },{ max_workers => 48, use_threads => 1, user_func => \&poller },{ max_workers => 8, use_threads => 1, user_func => \&db }] ); $mce->run();
After some thought, I'm thinking that "tasklets" is fitting here? But maybe "sets" is fitting. Yikes, just coming up with the name for the new option is harder than I had imagined.
Thanks, Mario
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need suggestion on option name for upcoming MCE 1.2 release
by ColonelPanic (Friar) on Nov 28, 2012 at 13:05 UTC | |
by marioroy (Prior) on Nov 28, 2012 at 13:13 UTC | |
by marioroy (Prior) on Nov 28, 2012 at 13:20 UTC | |
|
Re: Need suggestion on option name for upcoming MCE 1.2 release
by Don Coyote (Hermit) on Nov 28, 2012 at 13:17 UTC | |
by marioroy (Prior) on Nov 28, 2012 at 13:41 UTC | |
|
Re: Need suggestion on option name for upcoming MCE 1.2 release
by Anonymous Monk on Nov 28, 2012 at 09:32 UTC | |
by marioroy (Prior) on Nov 28, 2012 at 12:40 UTC | |
by marioroy (Prior) on Nov 28, 2012 at 13:06 UTC |