yes u r right. Thanks Anurag --- Jim Cromie <jcromie@xxxxxxxxxx> wrote: > 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/ > > __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/