execute gathering in multi thread and timeout