|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.trinity.cs.bmassing.threads2.NumIntPar1
public class NumIntPar1
Class to hold main method that computes pi using numerical integration, using multiple threads, without the use of java.util.concurrent. Computes pi by approximating the area under the curve f(x) = 4 / (1 + x*x) between 0 and 1.
| Constructor Summary | |
|---|---|
NumIntPar1()
|
|
| 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 |
|---|
public NumIntPar1()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - command-line arguments (number of threads)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||