
Hi Aurelien, It seems that the logic objspace has had now for a long time a schedule() function, instead of just doing the preemptive scheduling automtically. As we've always said, it is very easy to do the preemptive scheduling bit, but as you never followed-up on that, I guess I have to ask again. Do you want me to add a hook in the logic objspace that calls schedule() every Nth bytecode instruction? A bientot, Armin

Hi Armin, On Mon, Sep 18, 2006 at 09:54:28AM +0200, Armin Rigo wrote:
Hi Aurelien,
It seems that the logic objspace has had now for a long time a schedule() function, instead of just doing the preemptive scheduling automtically. As we've always said, it is very easy to do the preemptive scheduling bit, but as you never followed-up on that, I guess
Well, it's nice to know. I didn't ask further because it seemed not 'very easy' nor high-priority (from my pov) at the time (a few monthes ago).
I have to ask again. Do you want me to add a hook in the logic objspace that calls schedule() every Nth bytecode instruction?
Sure. Thanks, Aurélien.

Hi Aurelien, On Mon, Sep 18, 2006 at 10:47:26AM +0200, Aur?lien Camp?as wrote:
I have to ask again. Do you want me to add a hook in the logic objspace that calls schedule() every Nth bytecode instruction?
Sure.
See interpreter/test/test_executioncontext.py, or look at how module/thread/__init__.py adds an action that is called back every Nth bytecode instruction. A bientot, Armin

On Thu, Nov 02, 2006 at 05:52:02PM +0100, Armin Rigo wrote:
Hi Aurelien,
On Mon, Sep 18, 2006 at 10:47:26AM +0200, Aur?lien Camp?as wrote:
I have to ask again. Do you want me to add a hook in the logic objspace that calls schedule() every Nth bytecode instruction?
Sure.
See interpreter/test/test_executioncontext.py, or look at how module/thread/__init__.py adds an action that is called back every Nth bytecode instruction.
Great ! Thanks a lot, Armin. -- Alexandre Fayolle LOGILAB, Paris (France) Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services Informatique scientifique: http://www.logilab.fr/science Reprise et maintenance de sites CPS: http://www.migration-cms.com/
participants (3)
-
Alexandre Fayolle
-
Armin Rigo
-
Aurélien Campéas