using fork in a shared object.

Hello all,

I am developing application which uses a shared library. For some reasons main application process duplicates. When investigated, we figured out that shared library uses fork system call for some complex tasks. This was also found to be harmful in main application process context.

I have few questions.

1) Is it a good practice to use "fork" system call in shared library?
2) If not, is it OK to use a thread mechanism for complex tasks within a lib?

Please share your opinions

Thanks
Nkumar
1. No
2. Yes
Topic archived. No new replies allowed.