use select to replace thread