in reply to Multi-threaded script

dvinay:

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.

Replies are listed 'Best First'.
Re^2: Multi-threaded script
by dvinay (Acolyte) on Sep 13, 2013 at 06:16 UTC
    Hi, You mean to say i need to make that global variable as shared , if yes let me know how to do it. your help is much appreciated. Thanks, Vinay