add thread pool
Merge pull request #4 from dzmdre/task4

Threads