Re: Process adress space (during context/process switch) + VM question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I wrote:
>>I believe, from Linux's PoV, that a thread doesn't have a parent. All
>>threads in a process are equal. A thread's stack is just an area of


Mulyadi Santosa wrote:
> Are you sure about this Tristan?

Not totally, no :)

> IMHO every process has a parent, even 
> it is a thread created on NPTL environment. Perhaps you got this 
> impression since each thread has same pid?

I remember reading a request from Linus Torvalds on lkml that the kernel
support for threads that NPTL would use should not treat any thread of a
process differently to any other, so any threads can die, and any one of
them can be the last. I meant that I thought a thread doesn't become the
parent of one that it creates (that they both have the same parent - the
process that was the parent of the first one). I admit I don't know the
details.

-- 
Tristan Wibberley

Opinions expressed are my own and do not necessarily coincide with those
of my employer, etc.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux