edu.trinity.cs.bmassing.threads2
Class NumIntPar2

java.lang.Object
  extended by edu.trinity.cs.bmassing.threads2.NumIntPar2

public class NumIntPar2
extends java.lang.Object

Class to hold main method that computes pi using numerical integration, using multiple threads and java.util.concurrent. Computes pi by approximating the area under the curve f(x) = 4 / (1 + x*x) between 0 and 1.


Constructor Summary
NumIntPar2()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumIntPar2

public NumIntPar2()
Method Detail

main

public static void main(java.lang.String[] args)
Main method.

Parameters:
args - command-line arguments (number of threads)