Multi-thread strategy changed

Now thread wait for others. Every thread run its own job. without caring
about others.