{"id":3782,"date":"2014-03-30T05:35:55","date_gmt":"2014-03-30T05:35:55","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/symptoms-of-thread-leak-collection-of-common-programming-errors\/"},"modified":"2014-03-30T05:35:55","modified_gmt":"2014-03-30T05:35:55","slug":"symptoms-of-thread-leak-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/symptoms-of-thread-leak-collection-of-common-programming-errors\/","title":{"rendered":"Symptoms of thread leak-Collection of common programming errors"},"content":{"rendered":"<p>I have a C++ application that isn&#8217;t calling <code>pthread_join<\/code> and has O(time running) threads. My question is &#8211; how would this affect the health of the server task? Is there a fixed number of threads a C++ task can hold before it crashes or fails to start new threads? Will this manifest as an error code in <code>pthread_create<\/code>? Does it just leak memory or will it slow down processing time of the rest of the applications?<\/p>\n<p>The threads are finishing (top level function is returning), just not being <code>pthread_join<\/code>&#8216;ed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a C++ application that isn&#8217;t calling pthread_join and has O(time running) threads. My question is &#8211; how would this affect the health of the server task? Is there a fixed number of threads a C++ task can hold before it crashes or fails to start new threads? Will this manifest as an error [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3782","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3782"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3782\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}