cvs commit: src/sys/kern uipc_sem.c

David Xu davidxu at
Thu Mar 10 14:11:06 GMT 2005

Robert Watson wrote:

>So the question is -- will the parent process see any parallelism in
>kernel during fork() for any of our threading model, or do we prevent
>Robert N M Watson
When fork1() running,  only the current forker thread can run,
other threads in same process are just suspended by the forker,
same as it it in exec().
I haven't looked uipc_sem.c, but as you said above, it seems
sem can be shared between processes, you'd care if A and B are
sharing same sem, but now B would like to fork a new child C,
not sure if you will have the problem within this condition.

David Xu

More information about the freebsd-threads mailing list