Recommended way to force a thread context switch?
Lloyd Zusman
ljz at asfast.com
Sat Jan 6 15:44:26 EST 2007
I have a python (2.5) program with number of worker threads, and I want
to make sure that each of these does a context switch at appropriate
times, to avoid starvation. I know that I can do a time.sleep(0.001) to
force such a switch, but I'm wondering if this is the recommended
method.
Thanks in advance.
--
Lloyd Zusman
ljz at asfast.com
God bless you.
More information about the Python-list
mailing list