while true do begin b_i := true; while k != i do begin while b_j do skip; k := i; end; b_i := false; end;