Re: how to resolve this deadlock and why

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fork() and pthread/threads dont mix dont use them in the same application
please read many threads in gogle groups relating to this
neway with pthread you can look pthread_atfork() function perhaps the man
page will throw more on the exact problem u are facing ?

    Possibly u are holding some mutexes in the parent preocess which are not
released in the thread that calls fork which will be the only thread in the
child process

fork() does not recreate all threads in the parent in the new child
process.Only the thread that called fork is recreated

-SIGTERM
amit

----- Original Message -----
From: "Preetham D Naik" <pdn@sasken.com>
To: <kernelnewbies@nl.linux.org>
Sent: Wednesday, January 21, 2004 12:49 PM
Subject: how to resolve this deadlock and why


> If a Solaris threads application calls fork1()  or  a  POSIX
> threads  application  calls  fork(), and the child does more
> than simply call exec(), there is a deadlock
> occurring   in   the   child.
>
>


----------------------------------------------------------------------------
----


> ***********************************************************************
>
> SASKEN BUSINESS DISCLAIMER
>
> This message may contain confidential, proprietary or legally Privileged
information. In case you are not the original intended Recipient of the
message, you must not, directly or indirectly, use, Disclose, distribute,
print, or copy any part of this message and you are requested to delete it
and inform the sender. Any views expressed in this message are those of the
individual sender unless otherwise stated. Nothing contained in this message
shall be construed as an offer or acceptance of any offer by Sasken
Communication Technologies Limited ("Sasken") unless sent with that express
intent and with due authority of Sasken. Sasken has taken enough precautions
to prevent the spread of viruses. However the company accepts no liability
for any damage caused by any virus transmitted by this email.
>
> ***********************************************************************
>


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux