in reply to Re: volatile memory?
in thread volatile memory?
I'm not intentionally using multiple threads, though the computer is dual core.
The error occurs within the loop; every so often, $array[0] contains the wrong value (yes, numeric), but always a previously used value. In tests, only about 20% of the values were wrong, the others right. And the second while loop solved the errors. I don't know how to explain that, really.
mytestfunc only reads values from the array, and does not change it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: volatile memory?
by wwe (Friar) on Sep 02, 2010 at 10:10 UTC | |
|
Re^3: volatile memory?
by renshui (Novice) on Sep 02, 2010 at 09:29 UTC |