Multithreading / multiprocess

tleeuwenburg at gmail.com tleeuwenburg at gmail.com
Sat Apr 11 14:22:13 CEST 2009


Is there anyway to begin a thread and execute a finite number of lines
of code, or a finite amount of time within it?

For example, say I create three child threads and I want to guarantee
equal timeshare between them, can I specify a quanta (say 400 LOC
although I know that is pretty small) to execute in each one in turn?

-T



More information about the Python-list mailing list