P. 1
MultithreadedProgrammingGuide_Solaris24

MultithreadedProgrammingGuide_Solaris24

|Views: 84|Likes:

More info:

Published by: Spiros Fraganastasis on Jul 10, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/10/2011

pdf

text

original

fork(2)

With thefork(2) andfork1(2) functions, you can choose between duplicating
all parent threads in the child or only one parent thread in the child.

Thefork() function duplicates the address space and all the threads (and
LWPs) in the child. This is useful, for example, when the child process never
callsexec(2) but does use its copy of the parent address space.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->