Oddly, there doesn't seem to be much effect on speed whether I use a
single random number generator (i.e., instance of java.util.Random)
or one for each thread.
Peter Drake
http://www.lclark.edu/~drake/
On Jun 5, 2007, at 11:59 AM, Jason House wrote:
On 6/5/07, Peter Drake <[EMAIL PROTECTED]> wrote:
On a multithreaded program like Orego (running on a multicore
machine), it moves the nontrivial random number generation out of
the synchronized part of the program and into the threads.
I'm surprised to hear this. Do you have a single random number
generator? In housebot, Each thread has its own random number
generator instance. Besides avoiding a bottleneck as each thread
generates random numbers, it also opens the door for repeatable
behavior in a single worker thread.
_______________________________________________
computer-go mailing list
[email protected]
http://www.computer-go.org/mailman/listinfo/computer-go/
_______________________________________________
computer-go mailing list
[email protected]
http://www.computer-go.org/mailman/listinfo/computer-go/