Salhot, How do the kernel implement a thread group that share same memory area?
The process descriptor structure - task _struct has the field mm that is pointer to mm_stuct which has the information of the memory used by a process. When you create a thread group that share same memory pages the mm fields of all processes point to the same mm_struct.. Hope it helps. - Rahul On Wed, May 21, 2008 at 12:32 PM, sahlot arvind <[EMAIL PROTECTED]> wrote: > Hello > > Do kernel threads have different address space like User processes have? I > mean if I allocate some memory in kernel thread A then can kernel thread B > see it or can some driver see it? > Thanks in advance > - A > -- Smart data structures and dumb code works a lot better than the other way around. -Eric S Raymond
