Hi Folks:

Message: 2
Date: Tue, 2 Aug 2011 10:54:41 -0400
From: Andrew Tutt <[email protected]>
To: The Stackless Python Mailing List <[email protected]>
Subject: Re: [Stackless] tasklet sleep()
Message-ID:
    <capbpzo2j7pn4uqxb6i8jj0-5ofkzblfp7npkt6or03xuz_s...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

>As I've noted elsewhere, all sleep() functions in stackless are inherently
>busy sleep because they are being continuously rerouted to the scheduler.

The technique I use avoids most of the busy polling problem. The closest thing
to busy polling, Task.looping call is sometimes needed because the reactor does 
not
know that it is running in a tasklet and needs to occasionally yield to the 
scheduler.

Cheers,
Andrew
_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to