Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #73774

Re: thread.interrupt_main() behaviour

References <CAJV9OM9EfaystFNUtQJLapwP7yUhnjinduS=K8HDj2_BL9ys-Q@mail.gmail.com>
Date 2014-07-01 04:45 -0500
Subject Re: thread.interrupt_main() behaviour
From Skip Montanaro <skip@pobox.com>
Newsgroups comp.lang.python
Message-ID <mailman.11358.1404207905.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Jul 1, 2014 at 3:58 AM, Piyush Verma <114piyush@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: thread.interrupt_main() behaviour Skip Montanaro <skip@pobox.com> - 2014-07-01 04:45 -0500

csiph-web