Implement thread pool as a service.
Merge pull request #7 from jsza/master

Implement thread pool as a service.