c - posix thread memory consumption -


i have c program creating detached thread child. inside of function pass pthread_create use pthread_detach detach thread. @ end call pthread_exit((void *) 0)

i know if normal behaviour memory consumption increases after thread created.

i did valgrind check , there no leaks 4 suppressed errors.

i know if normal behaviour memory consumption increases after thread created.

yes,

  1. each thread gets own stack assigned. size os setting dependend , around 1m.

  2. some system resource used manage each thread itself.

both released if thread ends detached thread or if thread joined joinable thread.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -