The Threads division

i assign each thread a sector to work on by the values of vsplit and
hsplit.
after the assignment the master thread wait for all the other threads,
according to the FAQ it is ok.