|
sda Wanderer
Joined: 18 Apr 2001 Posts: 55 Location: United Kingdom
|
Posted: Tue Aug 13, 2002 9:01 pm
Parallel threads? |
Can different scripts/triggers be run simultaneously?
My problem is I have several scripts all with working temporary variables that I only need for the duration of the script. Could I use a generic set of temp variables, eg. v,w,x,y,z in several scripts, or might one intefere with the other if they run at the same time?
Thanks,
Steve :) |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Tue Aug 13, 2002 10:17 pm |
zMud isn't multi-threaded so to my knowledge zMud does things as they queue up.
You can watch things as they get processed with
#MENU {Windows|Debugger}
I'd hazzard that the temp variables shouldn't overlap. I tend to have
each script use its own temp variables for debugging purposes myself.
Ton Diening |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Aug 13, 2002 10:45 pm |
The public version is not multi-threaded at all. However recent beta's gained a speed increase by swapping what section of script it is processing on the middle of it (still 1 thread though). This caused no end of grief when it was first done, until the behavior was tracked down and explained. So thinking ahead for future versions you should split your script into sections that will have more then one portion of that section running at a time, and group temporary variables accordingly. Alternately you can plan ahead by using the full syntax of the VAR command to put all temporary variables into a single class that you can readily remove, that allows you more flexibilty in creating many of them. In fact I use both those strategies.
|
|
|
|
|
|