Re: Seeming Non-determinism in Java Programs
Randall R Schulz <[email protected]> Sun, 6 Apr 2008 19:10:54 -0700
| Newsgroups | gmane.comp.windows.devel.java.advanced |
|---|---|
| Message-ID | <[email protected]> |
On Sunday 06 April 2008 18:27, Endre Stølsvik wrote: > Randall R Schulz wrote: > > This is perplexing to me. How can multiple independent (but > > identical) invocations of the JVM produce highly varying > > executions? > > > > My first question is this: What phenomenon / dynamics can cause > > this sort of behavior? While I'm open to the possibility that it is > > a bug (permit me to say a _subtle_ bug), I'm experienced enough to > > know the proper implementation of equals() and hashCode(), e.g. > > Something to do with concurrency and order (if you have more than one > thread in operation), Nope. This a single-threaded program. Multiple identical invocations of the JVM (from the command line) produce wildly varying results. > ... > > Endre. Randall Schulz =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com