Re: AIX problem: after pthread_join(), the threads are still there! On 4月11日, 下午3時28分, "Jedrzej Dudkiewicz"
<jedrzej.dudkiew...@poczta.interia.pl> wrote:
> > pthread_attr_t attr;
> > pthread_attr_init(&attr);
> > pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
> > pthread_create(&tid[i], NULL, test_proc, NULL);
>
> You should use attr somewhere, namely in pthread_create.
>
> JD
thanks, I've tried that, it still have no effect. The threads are
still there, whether using attr no not using attr. :-( |