thread.interrupt_main() behaviour

Skip Montanaro skip at pobox.com
Tue Jul 1 11:45:02 CEST 2014


On Tue, Jul 1, 2014 at 3:58 AM, Piyush Verma <114piyush at 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 and Tt2 will both interrupt that
thread.

Skip



More information about the Python-list mailing list