def run_splitted_processing(max_simultaneous_processes, process_name,<EOL>filenames):
pids = []<EOL>while len(filenames) > <NUM_LIT:0>:<EOL><INDENT>while len(filenames) > <NUM_LIT:0> and len(pids) < max_simultaneous_processes:<EOL><INDENT>filename = filenames.pop()<EOL>pids.append(service_start(service=process_name,<EOL>param=['<STR_LIT>', filename, '<STR_LIT>',<EOL>imported_day]))<EOL><DEDENT>while len(pids) == max_simultaneous_processes:<EOL><INDENT>time.sleep(sleep_timer)<EOL>pids = update_running_pids(pids)<EOL><DEDENT><DEDENT>while len(pids) > <NUM_LIT:0>:<EOL><INDENT>time.sleep(sleep_timer)<EOL>pids = update_running_pids(pids)<EOL><DEDENT>
Run processes which push the routing dump of the RIPE in a redis
database.
The dump has been splitted in multiple files and each process run
on one of this files.