Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73799
| References | <CAJV9OM9EfaystFNUtQJLapwP7yUhnjinduS=K8HDj2_BL9ys-Q@mail.gmail.com> <CANc-5UyZVHncY19vL9FYo8EV2s-PLJsTT=aA9uHp5Ez0DGOYkg@mail.gmail.com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2014-07-01 11:47 -0600 |
| Subject | Re: thread.interrupt_main() behaviour |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11379.1404236879.18130.python-list@python.org> (permalink) |
On Tue, Jul 1, 2014 at 3:45 AM, Skip Montanaro <skip@pobox.com> wrote: > 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. Also, the threading model has no hierarchy as suggested by the diagram. All threads are equals (except the main thread, which is slightly more equal than others).
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: thread.interrupt_main() behaviour Ian Kelly <ian.g.kelly@gmail.com> - 2014-07-01 11:47 -0600
csiph-web