Fine thread control, Run only n bytecodes

David Pokorny davebrok at soda.csua.berkeley.edu
Fri Jul 16 15:08:04 EDT 2004


I'd like to be able to take a function or other chunk of code (that someone
else has written), run it for, say 50 byte codes, and then return control
back to my program/controlling thread until my program/controlling thread
indicates that it wants to run the next 50 bytes codes of the foreign
program, etc...

Is there an extension to the python threading module that supports such fine
control?

David Pokorny





More information about the Python-list mailing list