<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div id="yiv0068014362"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"><div id="yiv0068014362yui_3_13_0_ym1_7_1386354168091_10"><span id="yiv0068014362yui_3_13_0_ym1_7_1386354168091_16">Hi Lars:</span></div><div class="yiv0068014362yahoo_quoted" id="yiv0068014362yui_3_13_0_ym1_7_1386354168091_12" style="display: block;"><div class="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4609" id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4697"><div class="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4610" id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4696"><div dir="ltr" id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4700" style="font-family: HelveticaNeue,
 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"><br></div><div class="yiv0068014362y_msg_container" id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4695" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;">Message: 1<br>Date: Thu, 5 Dec 2013 22:07:20
 +0100<br>From: lars van Gemerden <<a rel="nofollow" ymailto="mailto:lars@rational-it.com" target="_blank" href="mailto:lars@rational-it.com" id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_10981">lars@rational-it.com</a>><br>To: The Stackless Python Mailing List <<a rel="nofollow" ymailto="mailto:stackless@stackless.com" target="_blank" href="mailto:stackless@stackless.com" id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_11188">stackless@stackless.com</a>><br>Subject: Re: [Stackless] monkeypatching<br>Message-ID:<br>    <CAP8kt8yLp1P46DeZfdBwkeTvWmbWFXbAra+<a rel="nofollow" ymailto="mailto:MSxViXhuWXj0Fsw@mail.gmail.com" target="_blank" href="mailto:MSxViXhuWXj0Fsw@mail.gmail.com">MSxViXhuWXj0Fsw@mail.gmail.com</a>><br>Content-Type: text/plain; charset="windows-1252"<br><br>>(oh, i created a tasklet for the bottle microframework run() method, which<br>>includes the mainn server loop()) ; I only called schedule() on
 each web<br>>server request to be able to do anything outside the server mainloop.<br>>However that had the
 effect that process steps where not executed as >long as the end user sent no requests (some processes do not have any >web component).<br></div><div class="yiv0068014362y_msg_container" id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4695" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"><br></div><div class="yiv0068014362y_msg_container" id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4695" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;">I haven't had a chance to carefully look at your code. However from this description, it sounds like a thread/tasklet is blocked on I/O.  This will have the effect of blocking all tasklets in that thread. What you need to do is occasionally call a timeout from the underlying system call (for example, select()) and do a schedule() so other tasklets can
 run.</div><div class="yiv0068014362y_msg_container" id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4695"> <br id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_10967"></div><div class="yiv0068014362y_msg_container" id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4695" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;">Cheers,</div><div class="yiv0068014362y_msg_container" id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4695" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;">Andrew</div><div class="yiv0068014362y_msg_container" id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4695" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"><br></div><div class="yiv0068014362y_msg_container yui_3_13_0_ym1_1_1386354168091_13524"
 id="yiv0068014362yui_3_13_0_ym1_1_1386354168091_4695" style="font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:12pt;">P.S - Yahoo's new and improved mail interface is killing me!</div>  </div> </div>  </div> </div></div></div></div></body></html>