thread pool working and horner formula