I wrote a script that includes generating gcov in parallel. I succeeded, but it creates 17 child processes at a time. But I want to create only 6 child processes at a time, the 7th child should create after the completion of the 1child process.
sub gcov_parallel() 2 { 3 print "Generating Gcov...\n"; 4 my $kid; 5 my $pid; 6 @list = (@iucall,@iurcall_init,@iurcall_term,@iurcall_uti,@nob,@nobcch,@nobcell,@nobrrc,@nobcall,@rnccall,@cellin fo,@rnccom,@cellrrm,@uerrm,@uerrc,@uecall,@iupcded); 7 my $len_list = scalar(@list); 8 my $maxlen =0; 9 my $count = 0; 10 my $process = 0; 11 $total_components = scalar(@comp_list); 12 13 for(my $comp_count=0; $comp_count < $len_list ; ($comp_count=$comp_count+$no_of_machines)) 14 { 15
source share