Special Points When Generating Threads

Userspace thread libraries use the clone system call to generate new threads. This call supports flags (other than those discussed above) that produce certain special effects in the copy_process (and in the associated invoked functions). For the sake of simplicity, I omitted these flags above. However, it should be remembered that the differences between a classical process and a thread in the Linux kernel are relatively fluid and both terms are often used as synonyms (thread is also frequently used to mean the architecture-dependent part of a process as mentioned above). In this section, I concentrate on the flags used by user thread libraries (above all, NPTL) to implement multithreading capabilities.

□ clone_parent_settid copies the PID of the generated thread to a point in userspace specified in the clone call (parent_tidptr, the pointer is passed to clone)12:

Continue reading here: Kernelforkc

Was this article helpful?

0 0