Stackless/microthreads merge news

Christian Tismer tismer at tismer.com
Wed May 17 08:01:56 EDT 2000


Darrell Gallion wrote:
> 
> Here's some other things you might want to save other than the data stack.
> Program counter
> Return stack and return stack pointer
> Word pointer
> 
> I think Forth implements multitasking by swapping these out.
> Save all this stuff in the dictionary.
> Then you restore a copy and bam, your time machine kicks in.

Yeah, sure. I realized it after posting. Actually the PC and
return stack are of priority. I'm not even sure about the
data stack. Probably I will put them all into Python's
frames and just switch this. Then I'm again back at what
I have now...

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer at appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaunstr. 26                  :    *Starship* http://starship.python.net
14163 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     where do you want to jump today?   http://www.stackless.com




More information about the Python-list mailing list