> On Wed, 30 Nov 2005, Russ Cox wrote:
> > thread(2):
> >
> >        Thread library functions do not return on failure;
> >        if errors occur, the entire program is aborted.
>
> Interesting. If threads are being created by a main thread on the
> fly to handle some task, it means all threads (including main thread)
> disappear??

The only way these can fail is if you run out of memory
or you run out of processes.

> What if there is a need for active threads to complete
> the assigned tasks?

Then you should fix the memory or process leaks.

Russ

Reply via email to