Fork mystries....
Joerg Sonnenberger
joerg at britannica.bec.de
Sat Jun 4 00:05:59 GMT 2005
On Fri, Jun 03, 2005 at 07:55:29PM -0400, Aziz Kezzou wrote:
> It's probably not the right mailing list to ask but I am really
> surprised about global variable sharing in a multithreaded C
> application. If I remember well my multithreading course global
> variables are shared between threads, right ?
fork() creates new processes, not new threads. Check pthread_create
for the latter.
Joerg
More information about the freebsd-hackers
mailing list