Generic distributed thread