> Threads live in the same process address space....as this is exactly > what clone() with CLONE_VM does. Therefore, threads on the same group > share same PGD (page global directory). However, with the help of > segmentation (GDT and LDT, depends on how your pthread's version > works), some memory areas are accessible from a thread, others are > not... If the threads share the same(single) PGD then AFAIK they must be sharing the descriptor task_struct . because the threads extract the the PGD from the mm_struct in the descriptor. Now how do we account for the thread local storage ...if everything is shared ?? iam confused about this . -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/