On Mon, Jul 7, 2014 at 8:41 AM, Piyush Verma <114piy...@gmail.com> wrote:
> Thanks Ian for information. There is slightly more I want to do. Consider if
> I want to kill some threads not all, is there a way to do that?
You can't safely interrupt threads. What you can do is *request* the
thread to
On Tue, Jul 1, 2014 at 3:45 AM, Skip Montanaro wrote:
> On Tue, Jul 1, 2014 at 3:58 AM, Piyush Verma <114piy...@gmail.com> wrote:
>>
>> Since two threads are running same method, I wanted to know which main
>> thread will be interrupted in both case.
>
> I'm no threading expert, but a process can
On Tue, Jul 1, 2014 at 3:58 AM, Piyush Verma <114piy...@gmail.com> wrote:
>
> Since two threads are running same method, I wanted to know which main thread
> will be interrupted in both case.
I'm no threading expert, but a process can only have one main thread,
the one you labeled "P". Threads T2
Hi,
What is the behavior when we call thread.interrupt_main() method.
Using this method I have implemented a new method for checking timeout.
359def TimeoutFunc(self):360 '''Function invoked by timer
thread in case of timeout '''361 self.log.debug("Timeout thread
invoked now for