|
Home > Archive > Unix Programming > February 2006 > Thread death but not process?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Thread death but not process?
|
|
| seenutn@gmail.com 2006-02-19, 8:29 am |
| Hi,
I have an app which is multithreaded. In the course of execution,
one of the thread in application dies but my process continues to run
with the other threads. Thread is created as joinable. What are the
reasons in which case my thread dies (I am not doing pthread_exit or
not calling pthread_cancel from other thread)?
I am using RHEL 4 update 2 (Kernel 2.6.9-5ELsmp).
Regards,
Seenu.
| |
| Joe Seigh 2006-02-19, 8:29 am |
| seenutn@gmail.com wrote:
> Hi,
> I have an app which is multithreaded. In the course of execution,
> one of the thread in application dies but my process continues to run
> with the other threads. Thread is created as joinable. What are the
> reasons in which case my thread dies (I am not doing pthread_exit or
> not calling pthread_cancel from other thread)?
> I am using RHEL 4 update 2 (Kernel 2.6.9-5ELsmp).
>
What do you mean your thread dies? You could do a join on it or
you just think it's dead? If the former, something is making
your thread exit.
--
Joe Seigh
When you get lemons, you make lemonade.
When you get hardware, you make software.
| |
| loic-dev@gmx.net 2006-02-19, 8:29 am |
| Hello,
> I have an app which is multithreaded. In the course of execution,
> one of the thread in application dies but my process continues to run
> with the other threads.
What let you think that your thread has died?
> Thread is created as joinable. What are the
> reasons in which case my thread dies (I am not doing pthread_exit or
> not calling pthread_cancel from other thread)?
The only remaining solution I see is a return from the routine that
was specified in the pthread_create() call that started the thread.
But are you sure that your thread "died" ?
HTH,
Loic.
|
|
|
|
|