Thread within a thread

R

raseelbhagat

Is it possible to call a thread (pthread) from within a thread
invocation ?

If I correctly pthread_join() the new thread from the calling thread,
does it make good design sense ?
 
C

Chris M. Thomasson

Is it possible to call a thread (pthread) from within a thread
invocation ?
Yes.




If I correctly pthread_join() the new thread from the calling thread,
does it make good design sense ?

Well, perhaps it makes 100% complete sense for your particular application;
I need more information. However, I would suggest asking this portion of the
question over in `comp.programming.threads'...
 
R

Raseel

Well, perhaps it makes 100% complete sense for your particular application;
I need more information. However, I would suggest asking this portion of the
question over in `comp.programming.threads'...

Thanks,
I'll post it there, while trying out the code anyways.

I just wanted to know if there were any apps out there using such a
design.
 
C

CBFalconer

Raseel said:
Thanks, I'll post it there, while trying out the code anyways.
I just wanted to know if there were any apps out there using
such a design.

The point was that the question is off-topic here in c.l.c. The C
language does not include threads. Any such provisions are
extensions provided on various installations, and are not mentioned
or specified in the C standard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top