Nope. Threads. Two interpreters can be DODing at the same time.
Static variables aren't tenable for much of anything with threads...
:(
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk
Unless protected by a mutex.
I have now read the programming POSIX threads book. I take it that makes me
a fully qualified l33t threads d00d who knows everything.
How much of a speed impact could it be to serialise DOD runs between threads?
Presumably 1 thread doing a DOD run could actually manage to free up enough
memory to make both happy?
Nicholas Clark
If the interpreters are reasonably separate, then one won't affect
the other, except in cases where the system has exhausted the memory
available to the process, so there's not a huge reason to do this.
Also, it is a choke point. Since the interpreters are generally
separate, the better place for this is in the interpreter structure.