Children of fork() Cannot pthread_create()?
Jerry Richards
jerryr at tonecommander.com
Thu Jun 7 12:19:52 PDT 2007
Hello All,
Just to button up my issue with this, I have converted my application to
simply be multi-threaded using pthread_create() invocations only. This
approach is acceptable and I have tested it and it works fine. The reason I
was using fork() in the first place was to isolate memory access among the
processes of a single application (and I didn't want to make each process a
separate application, because I think this adds alot of memory overhead...
true?).
In the future, I'm planning to only use fork() (without exec()) if the
resultant child does not need to create a pthread of its own. Of course, if
I need to run another application, then I'll use fork() and exec() as
appropriate.
Thanks for all of your help on this...
More information about the uClibc
mailing list