On Tue, Jul 1, 2014 at 3:45 AM, Skip Montanaro <s...@pobox.com> 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 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).

Reply via email to