Wait statement code optimization

In reply to manasa-n:


task initialize_counter();
forever begin
#1;
    for(int i = 0; i < NO_OF_ROWS; i++)begin
      automatic int j = i;
      fork 
        begin
          wait((counter1[j] && counter2[j]) == 0);
        end 
      join_none;      
    end
    wait fork;
{counter1,counter2} = 0;
end
endtask : initialize_counter