in reply to Re: Using forks and threads
in thread Using forks and threads
I'm expecting that calling system() from a thread would work fine most of the time, since the fork would duplicate all threads, etc, as expected, but would then exec() instantly after the fork. However, if this isn't atomic (eg: if the process received an interrupt just before exec()ing), one of the other threads might continue in the new fork before exec()ing, which certainly isn't what I'd want.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using forks and threads
by kwaping (Priest) on Jul 20, 2006 at 15:39 UTC | |
by ColinHorne (Sexton) on Jul 21, 2006 at 13:20 UTC |