Re: A small change in the scheduler

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

 



Anurag Verma wrote:

If threads are created from a process then all threads will share the same
process address space (i.e. stack , registers etc), but when a parent process
creates a child process then another process address space gets created for
child process. But linux implements Copy on Write feature due to which the
child process will share the parent process address space until it is writing
on it.
So u can easily figure out the difference. And this difference is coming from
code.
Inform me if i m wrong
Anurag
one minor nit:

the 2nd thread's stack, while still in the address space, must be in thread local storage, yes ?


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