Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
sda
Wanderer


Joined: 18 Apr 2001
Posts: 55
Location: United Kingdom

PostPosted: 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 :)
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net