Loop creating and joining threads is working. Now max 10000