Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

pthread_monte_carlo_pi.c

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 0.12 sec, absolute running time: 0.15 sec, cpu time: 0.01 sec, memory peak: 5 Mb, absolute service time: 0,42 sec  
edit mode |  history  | discussion
Enter the number of tosses:
Number in circle: 51414
Number of tosses: 65536
The estimate of pi = 3.138062
The elapsed time = 8.881092e-01 ms