in reply to Implement Queue mechanism in Perl
If all your tasks can be identified by a simple ID, and you are running on Linux, you can "abuse" existing tools:
$ perl generate_ids.pl | xargs -P 3 -n 1 perl process_single_id.pl [download]