On Wed, 21 Feb 2007, William James wrote:

[ ... ]
Does forkall() clone all running threads?

Solaris manpages are just wonderful :)

fork(2) says:

[ ... ]
  Threads
     A call to forkall() replicates in the child process  all  of
     the  threads  (see thr_create(3C) and pthread_create(3C)) in
     the parent process. A call to fork1()  replicates  only  the
     calling thread in the child process.

     In Solaris 10, a call to fork() is identical to  a  call  to
     fork1();  only the calling thread is replicated in the child
     process. This is the POSIX-specified behavior for fork().
[ ... goes on about pre/post-S10 fork() behaviour - ends with ... ]
     Applications that require replicate-all  fork semantics must
     call forkall().

Helps ?
:)

FrankH.
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to