dumper: implement thread pool