I would have a parent start two (or more) children. As soon as the first one terminates, it would send a suitable signal to the other one(s).
Update: in the above the emphasized "it" should refer to "the parent", although as jdhedden pointed out it seems to refer to "the first one". Apologies.
In reply to Re: kill thread or fork processes
by blazar
in thread kill thread or fork processes
by azaria
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |