3 ms·
> Or what happens to the threads when the process does a fork(). You mean this? http://pubs.opengroup.org/onlinepubs/009695399/functions/fork.html http://pubs.
by dozzie 10y ago
> Or what happens to the threads when the process does a fork().
You mean this?
http://pubs.opengroup.org/onlinepubs/009695399/functions/fork.html http://pubs.opengroup.org/onlinepubs/009695399/functions/for...
A process shall be created with a single thread. If a multi-threaded process
calls fork(), the new process shall contain a replica of the calling thread
and its entire address space, possibly including the states of mutexes and
other resources.
Granted, it's SUSv3.
- pjmlp 10y agoI would advise people that lack experience writing portable UNIX code to read "Advanced Programming in the UNIX Environment" by W. Richard Stevens and Stephen A. Rago. Just to get a glimpse of what POSIX says and what each UNIX actually does. EDIT: Not talking about you, rather in general.