bult queue, create_threadpool and worker function