[Stackless] [Uuu-devel] python internal hacking: multitasking, interrupts, and the like

Phil Frost indigo at bitglue.com
Mon Apr 24 16:27:25 CEST 2006


On Mon, Apr 24, 2006 at 10:02:49AM -0400, Jeff Senn wrote:
> [Removed python-list from reply...]
> 
> On Aug 30, 2004, at 8:08 PM, Phil Frost wrote:
> >...
> >To that end I've decided to get a new scheduler, and I want to do it
> >in Python. There are some things to consider:
> >...
> >The problem with Stackless is that I can't find any information on it.
> >I've made inquiries to their mailing list about how tasklets are
> >scheduled and received no response. Perhaps someone knowledgeable has
> >subscribed since I last asked this question. If so, please share your
> >knowledge.
> 
> Hello Phil-
> 
> There is not a ton of interest among the "stackless" (heh), in the
> preemptive scheduling aspects of using tasklets... There has been more
> discussion on the co-routine/continuation/messaging aspects. However
> it is definitely possible to do what you want to do. In fact, a few
> years ago we did a very similar project that turned stackless into the
> "kernel" for an embedded ARM processor (though much like you intend,
> there was actually the most tiny linux-ish kernel running one single
> python process). That project did not progress beyond a
> proof-of-concept prototype - however I can strongly urge you to pursue
> the stackless path... it was VERY easy to bolt something together.
> 
> ...
>
> > write a scheduler with it. I think if I were able to attach a python
> > routine to an interrupt handler, I could do with a minimal amount of
> > supporting C and assembly. However, I'm not sure how I can do this.
> > The problem is the infamous GIL; I don't know how I can acquire the
> > lock
> 
> Say more about this... and maybe we can give you some help... what sort
> of interrupts do you mean?
> 
> -Jas

Well actually, this message was written a little less than two years
ago. I can only imagine how it made it to the stackless mailing list
now. I had a specific problem in mind when I wrote it, but it has since
left my mind.

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list