create thread pool prototype