Example of ThreadPool class usage.