If you'd look at the docs for threads, it would tell you the answer. You need to share your variable(s). For a description of how, see threads::shared.
By the way, if you'd use code tags around your code, it would be easy to read your code.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Multi-threaded script
by roboticus
in thread Multi-threaded script
by dvinay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |