betreft:Re: [Stackless] Re: [Python-Dev] Stackless Design Q.
Samuel Smith
smithsm at samuelsmith.org
Tue Feb 26 01:13:28 CET 2002
>p.vrijlandt at aig.azn.nl wrote:
>
>>Form: Reply
>>Text: (103 lines follow)
>>Hi all,
>>
>>Could a timeslice function in C leave variables in python-code in
>>any way undefined?
>
>
>I don't think so.
>
>>I think statements in Python should probably be atomic (especially
>>if one tasklet can get to variables in another)
>
>
>Scheduling occours between opcodes. This is safe, since Python
>also does its real thread switching between opcodes.
>There has not been changed much compared to the old Stackless.
>
>Switching just has become simpler, since I no longer have
I think you would want to have the option of making the atomicity at
a courser granularity than an opcode. The old uthreads had atomic
statements. So you can wrapper a set of statements as being atomic.
>to convince the interpreter in a tricky way to leave its
>frame and restart another one.
>I just call a function that switches the current C stack
>fragment. That resumes another interpreter incarnation
>which simply continues.
>
>Python doesn't notice what's happening, and I'm not going
>to tell it. :-)
>
>ciao - chris
>
>--
>Christian Tismer :^) <mailto:tismer at tismer.com>
>Mission Impossible 5oftware : 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/
>
>
>_______________________________________________
>Stackless mailing list
>Stackless at www.tismer.com
>http://www.tismer.com/mailman/listinfo/stackless
--
**********************************************
Samuel M. Smith Ph.D.
360 W. 920 N.
Orem, Utah 84057
801-226-7607 x112 (voice)
801-226-7608 (fax)
http://www.samuelsmith.org (web)
*********************************************
_______________________________________________
Stackless mailing list
Stackless at www.tismer.com
http://www.tismer.com/mailman/listinfo/stackless
More information about the Stackless
mailing list