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,
each thread gets own stack assigned. size os setting dependend , around 1m.
some system resource used manage each thread itself.
both released if thread ends detached thread or if thread joined joinable thread.
Comments
Post a Comment