add threads limitation for multithread worker
add select worker and fix serveral bugs