2 threads for pi