Leibniz_Pi Gottfried Leibniz Pi approximation with threads and semaphores. Formula $$ \frac{\pi}{4} = \sum_{n=0 }^{\infty} \frac{(-1)^n}{2n + 1} $$