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

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

 



On Friday 19 August 2005 18:46, Jan Hudec wrote:
> I believe it's actually the initial task, that is turned into the thread
> manager. So it'd really be:
> 
>    100 (the thread manager)
>       +-------+---+---+-------+
>       |       |       |       |
>      101     102     103     104
> 
> Where the first thread_create, invoked from task 100, actually returns to
> task 101 and 102 is set to execute the function passed to task_create.
> 
> Because IIRC the "initial task" is required to be equal to all the other
> threads created.
> 
> 
-------------------------------------------------------------------------------
>        Jan 'Bulb' Hudec <bulb@xxxxxx>
> 
Now, I don't know if things are changed in kernel 2.6, but till the kernel 
2.4.29 a thread manager is created between 100 and the threads created by 
100.
The thread manager have pid 101 and the other threads respectively, 102, 103, 
104.
If you execute "ps -Al" in a terminal, you have something like the following:

pid    ppid
100   XXX
101   100
102   101
103   101
104   101

But I suggest Tom David googling on thread manager to better understand if I'm 
right or not. 
I remember I've read such informations about threads on a downloaded documents 
founded on the Web, but I don't remember where it was.

Vincenzo Mallozzi.

P.S. I'm sorry for the last email in which I've not well aligned simbols " | " 
and " / " to show the parenthood of threads.

		
___________________________________ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.beta.messenger.yahoo.com


--
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