I use C and Linux as my programming platform.
In my application, I call pthread_create. Then I check the memory usage in my application using the ps command line utility and adds 4 to the VSZ column.
But the problem is when the pthread_create, 4 function handler, which was added to memory, is called, was not released. Then, when the application calls pthread_create again, the value 4 is added until it becomes larger.
I tried pthread_join and it seems that the memory is still getting bigger.
Thanks.
source share