A simple thread pool example