multiple thread support & auto set cpu affinity & rlimit_nofile