multithreading - using signal in multithread in python -


I am running at the lower extremities in many threads, in each thread, I need to give the thread a signal if it is 5 Idles second for

  for i category (n): # some networks are transferring work  

But I found this in Python documentation: if both signals and threads Is used in the same program. The basic thing to remember in using signals and threads is that: In the main thread of execution, the signal always operates.

Since the multi thread should not be mixed with the signal, what other options do I leave a loop if it is idles for a very long time?


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -