in reply to Re^3: Threads sharing global variable
in thread Threads sharing global variable
I grabbed ikegami's code and ran it against perls 5.8.8, 5.10.1, 5.16.1, 5.18.1, and 5.22.1 on Linux/amd64, and it spat out huge amounts of data for each one. So, if you're only getting a single line of output, I have to wonder what's so different in your environment as to break this. However, that it works here indicates that the locking isn't a problem by itself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Threads sharing global variable
by BrowserUk (Patriarch) on Mar 05, 2016 at 02:00 UTC | |
|
Re^5: Threads sharing global variable
by beech (Parson) on Mar 05, 2016 at 00:20 UTC | |
by ikegami (Patriarch) on Mar 09, 2016 at 13:40 UTC | |
by BrowserUk (Patriarch) on Mar 09, 2016 at 14:58 UTC | |
by ikegami (Patriarch) on Mar 09, 2016 at 17:36 UTC | |
by BrowserUk (Patriarch) on Mar 09, 2016 at 17:49 UTC | |
|