On Sat, Oct 13, 2012 at 9:15 AM, Canek Peláez Valdés <can...@gmail.com> wrote:
<SNIP>
>
> We can only know seeing the code. Timur, this is the little test I
> made which creates 5 threads and runs them for 1 minute. In my case,
> `ps x` shows only 1 PID, care to give it a try?
>
> ----------------------
> #include <pthread.h> <<======
> #include <unistd.h>
> #include <stdlib.h>
> #include <stdio.h>

Thanks for the test case. Like you I see only one thread. However the
test case wouldn't compile for me without the -pthread option so it
makes me wonder what happens to a program like I had pointed to
yesterday that uses the old style threading that did create lots of
process ids? Possibly an nptl system would still generate lots of ids
for that program and that's what he's seeing?

Just curious. I don't program but I'm always sort of interested.

Cheers,
Mark

Reply via email to