Search:

Type: Posts; User: centenial

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    4,661

    Re: java threading execution time question

    You're a lifesaver! Math.random() was the problem. :) I changed my program to use the nextBoolean() method in the random class, and I now see approx. a 2 times speed up when using 2 threads vs. 1....
  2. Replies
    4
    Views
    4,661

    java threading execution time question

    Hey everyone,

    Let me state up front that this is a homework assignment.

    I'm supposed to take a simple task (flipping a coin n number of times) and use threading to increase the execution speed...
Results 1 to 2 of 2