Mladen Nikitovic wrote:
> Hi!
>
> Just wanted to say that I think I have solved my problem now. I did'nt 
> realize that pthread_create returned the LWP ID using the first argument. I 
> used thr_self() to get the ID of the "parent" process LWP. 
>
> However, I'm not 100% sure that the number of LWP's are always the same as 
> the number of threads. I used "prstat -Lc 1" and by looking at its output it 
> seemed to be true for the cases I was running.
>   
Kernel service thread's don't have associated LWPs, but in the current 
implementation each user thread has an associated LWP, so for your 
process this should be the case.

Thanks,
-Eric

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to