I need a thread pool that can handle a request queue. Is there an example somewhere how you make such a thing. It must have been made tons of those.
An added request to the queue must make sure that at least one thread wake up to take care of the request. THe last thing a thread do before going to sleep is to check if the queue isn't empty.