Hi,
How to use pthread_atfork() in qnx as fork() is supported only in single
threaded application in qnx ?
Thanking you in advance.
With Regards
Jitendra Sasmal
Hi,
How to use pthread_atfork() in qnx as fork() is supported only in single
threaded application in qnx ?
Thanking you in advance.
With Regards
Jitendra Sasmal
Jitendra Sasmal <sasmal_jk@rediffmail.com> wrote:
Hi,
How to use pthread_atfork() in qnx as fork() is supported only in single
threaded application in qnx ?
Since fork() is only supported in a single-threaded application, you
generally don’t need pthread_atfork().
What are you trying to accomplish?
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.
Thank you very much !
Actually,after going through the documentation of pthread_atfork(),I was
trying to create a deadlock situation and to solve it using
pthread_atfork().
All this is for my information only.
With Regards
Jitendra Sasmal
David Gibbs wrote:
Jitendra Sasmal <> sasmal_jk@rediffmail.com> > wrote:
Hi,
How to use pthread_atfork() in qnx as fork() is supported only in single
threaded application in qnx ?Since fork() is only supported in a single-threaded application, you
generally don’t need pthread_atfork().What are you trying to accomplish?
-David
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.
David Gibbs <dagibbs@qnx.com> wrote:
DG > Jitendra Sasmal <sasmal_jk@rediffmail.com> wrote:
Hi,
How to use pthread_atfork() in qnx as fork() is supported only in single
threaded application in qnx ?
DG > Since fork() is only supported in a single-threaded application, you
DG > generally don’t need pthread_atfork().
I would suggest that the document page for pthread_atfork() be amended
to reflect the fact that this function can not actually be used in a
multi-threaded QNX6 system.
Bill Caroselli <qtps@earthlink.net> wrote:
David Gibbs <> dagibbs@qnx.com> > wrote:
DG > Jitendra Sasmal <> sasmal_jk@rediffmail.com> > wrote:Hi,
How to use pthread_atfork() in qnx as fork() is supported only in single
threaded application in qnx ?DG > Since fork() is only supported in a single-threaded application, you
DG > generally don’t need pthread_atfork().I would suggest that the document page for pthread_atfork() be amended
to reflect the fact that this function can not actually be used in a
multi-threaded QNX6 system.
But pthread_atfork() can be used… and, I’m pretty sure will cause the
appropriate handlers to be called.
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.
David Gibbs <dagibbs@qnx.com> wrote:
Bill Caroselli <> qtps@earthlink.net> > wrote:
David Gibbs <> dagibbs@qnx.com> > wrote:
DG > Jitendra Sasmal <> sasmal_jk@rediffmail.com> > wrote:Hi,
How to use pthread_atfork() in qnx as fork() is supported only in single
threaded application in qnx ?DG > Since fork() is only supported in a single-threaded application, you
DG > generally don’t need pthread_atfork().I would suggest that the document page for pthread_atfork() be amended
to reflect the fact that this function can not actually be used in a
multi-threaded QNX6 system.But pthread_atfork() can be used… and, I’m pretty sure will cause the
appropriate handlers to be called.
Yes, but fork() itself will fail… :v)
-David
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.