pthread_detach doesn't release memory
psteele at maxiscale.com
Wed May 20 21:30:38 UTC 2009
>If I add a loop to your main() function, and add your missing
>pthread_detach() call, here's the memory usage I see on each iteration:
That was a typo in my posting. I in fact did use pthread_detach; the line got deleted as I was composing my email.
>So it reached a steady state after 5 loops.
That was my problem. I only tested for 3 or 4 iterations; I should have when a few more times and I would have observed this steady. I just verified this with my own app.
Thanks for helping me solve this mystery...
More information about the freebsd-questions