python - Issues with spawning multiple threads -


are there issues spawning multiple threads using threading.thread?

e.g. everytime wx.spinctrl clicked? don't know of implementation enables keep thread alive , start main method multiple times.

ps: think threading.timer implicits it's not bad.

'c++'-like pseudo:

thread:

tthread::run(){ while(true){ semaphore.wait(); mainmethod(); }; }; 

gui:

myform::onspinctrlclick(control sender){ semaphore.signal(); }; 

the mainmethod() run many times click.


Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -