Help for this page

Select Code to Download


  1. or download this
    foreach $line (<FILE>)
    {    
    ...
            chomp($line); #remove empty newlines in input file
        }
    }
    
  2. or download this
    
    while($timestamp <= $numevents)
    ...
        $timestamp++;
    }
    
  3. or download this
    $pid = 0; #process index
    @p_s = (); #2d process array/stack
    ...
    %schedule = (); #hash of each event with timestamp
    @totalorder = (); #final order of each event
    
  4. or download this
    
    ###################
    ...
        print "\n\n";
    }