From: Gabriel Genellina on 12 Oct 2009 23:50 En Mon, 12 Oct 2009 14:52:42 -0300, VYAS ASHISH M-NTB837 <ashish.vyas(a)motorola.com> escribi�: > The function that I want to run is part of a class, not a standalone > function. There are several class member variables also. What about modifying the run() method so it runs more than once? Perhaps using a Queue object to pass additional info for each run. Creating OS threads is somewhat expensive so usually is more efficient to create them once and keep feeding them with work to be done. -- Gabriel Genellina
First
|
Prev
|
Pages: 1 2 Prev: Python vs Java -> Perché i pythonisti ce l'hanno tanto con Java? Next: Where to find pexpect |