first implementation of the threadPool class. The event manager is now using the thread pool by generating a thread task.